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
ByteOutput
b
. The 24 high-order bits of
b
are ignored.write
in interface ByteOutput
b
- the byte to writeIOException
- if an error occurspublic void write(byte[] b) throws IOException
ByteOutput
write
in interface ByteOutput
b
- the byte arrayIOException
- if an error occurspublic void write(byte[] b, int off, int len) throws IOException
ByteOutput
write
in interface ByteOutput
b
- 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 Closeable
close
in interface AutoCloseable
IOException
public void flush() throws IOException
flush
in interface Flushable
IOException
Copyright © 2019 JBoss by Red Hat. All rights reserved.