public interface ByteOutput
extends java.io.Closeable, java.io.Flushable
Modifier and Type | Method and Description |
---|---|
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 . |
void write(int b) throws java.io.IOException
b
. The 24 high-order bits of
b
are ignored.b
- the byte to writejava.io.IOException
- if an error occursvoid write(byte[] b) throws java.io.IOException
b
- the byte arrayjava.io.IOException
- if an error occursvoid write(byte[] b, int off, int len) throws java.io.IOException
b
- the byte arrayoff
- the index to start writing fromlen
- the number of bytes to writejava.io.IOException
- if an error occursCopyright © 2011 JBoss, a division of Red Hat, Inc.