|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentOutputBuffer
Generic content output buffer.
Method Summary | |
---|---|
void |
flush()
Deprecated. (4.2) No longer used. |
int |
produceContent(ContentEncoder encoder)
Deprecated. (4.3) use implementation specific methods. |
void |
reset()
Resets the buffer by clearing its state and stored content. |
void |
write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array
starting at offset off to this buffer. |
void |
write(int b)
Writes the specified byte to this buffer. |
void |
writeCompleted()
Indicates the content has been fully written. |
Method Detail |
---|
@Deprecated int produceContent(ContentEncoder encoder) throws IOException
ContentEncoder
.
encoder
- content encoder.
IOException
- in case of an I/O error.void reset()
@Deprecated void flush() throws IOException
IOException
void write(byte[] b, int off, int len) throws IOException
len
bytes from the specified byte array
starting at offset off
to this buffer.
If off
is negative, or len
is negative, or
off+len
is greater than the length of the array
b
, this method can throw a runtime exception. The exact type
of runtime exception thrown by this method depends on implementation.
b
- the data.off
- the start offset in the data.len
- the number of bytes to write.
IOException
- if an I/O error occurs.void write(int b) throws IOException
b
- the byte
.
IOException
- if an I/O error occurs.void writeCompleted() throws IOException
IOException
- if an I/O error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |