Klasse ResponseWriterBuffer
java.lang.Object
org.apache.myfaces.tobago.internal.util.ResponseWriterBuffer
Buffering scheme: we use a tremendously simple buffering
scheme that greatly reduces the number of calls into the
Writer/PrintWriter. In practice this has produced significant
measured performance gains (at least in JDK 1.3.1). We only
support adding single characters to the buffer, so anytime
multiple characters need to be written out, the entire buffer
gets flushed. In practice, this is good enough, and keeps
the core simple.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addToBuffer
(char ch) Add a character to the buffer, flushing the buffer if the buffer is full, and returning the new buffer indexvoid
addToBuffer
(char[] ch) void
Flush the contents of the buffer to the output stream and return the reset buffer index
-
Konstruktordetails
-
ResponseWriterBuffer
-
-
Methodendetails
-
addToBuffer
Add a character to the buffer, flushing the buffer if the buffer is full, and returning the new buffer index- Löst aus:
IOException
-
addToBuffer
- Löst aus:
IOException
-
flushBuffer
Flush the contents of the buffer to the output stream and return the reset buffer index- Löst aus:
IOException
-