public class NoFlushByteOutput extends Object implements ByteOutput
| Constructor and Description |
|---|
NoFlushByteOutput(ByteOutput delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(byte[] b)
Write all the bytes from the given array to the stream.
|
void |
write(byte[] b,
int off,
int len)
Write some of the bytes from the given array to the stream.
|
void |
write(int b)
Writes to the output stream the eight low-order bits of the argument
b. |
public NoFlushByteOutput(ByteOutput delegate)
public void write(int b)
throws IOException
ByteOutputb. The 24 high-order bits of
b are ignored.write in interface ByteOutputb - the byte to writeIOException - if an error occurspublic void write(byte[] b)
throws IOException
ByteOutputwrite in interface ByteOutputb - the byte arrayIOException - if an error occurspublic void write(byte[] b,
int off,
int len)
throws IOException
ByteOutputwrite in interface ByteOutputb - the byte arrayoff - the index to start writing fromlen - the number of bytes to writeIOException - if an error occurspublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void flush()
throws IOException
flush in interface FlushableIOExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.