public interface Asn1Writable
Modifier and Type | Method and Description |
---|---|
void |
write(byte[] b)
Writes
b.length bytes from the specified byte array
to this writable. |
void |
write(byte[] b,
int off,
int len)
Writes
len bytes from the specified byte array
starting at offset off to this writable. |
void |
write(int b)
Writes the specified byte to this output stream.
|
void write(byte[] b) throws java.io.IOException
b.length
bytes from the specified byte array
to this writable. The general contract for write(b)
is that it should have exactly the same effect as the call
write(b, 0, b.length)
.b
- the data.java.io.IOException
- if an I/O error occurs.void write(byte[] b, int off, int len) throws java.io.IOException
len
bytes from the specified byte array
starting at offset off
to this writable.b
- the data.off
- the start offset in the data.len
- the number of bytes to write.java.io.IOException
- if an I/O error occurs. In particular,
an IOException
is thrown if the output
stream is closed.void write(int b) throws java.io.IOException
write
is that one byte is written
to the writable. The byte to be written is the eight
low-order bits of the argument b
. The 24
high-order bits of b
are ignored.b
- the byte
.java.io.IOException
- if an I/O error occurs.