com.upokecenter.util.IWriter
com.upokecenter.util.IWriter
public interface IWriter extends IByteWriter
A generic interface for writing bytes of data.
Methods
void write(byte[] bytes, int offset, int length)
Writes a portion of a byte array to the data source.
Method Details
write
void write(byte[] bytes, int offset, int length)
Writes a portion of a byte array to the data source.
Parameters:
bytes
- A byte array containing the data to write.offset
- An index starting at 0 showing where the desired portion ofbytes
begins.length
- The number of elements in the desired portion ofbytes
(but not more thanbytes
's length).
Throws:
NullPointerException
- Should be thrown if the parameterbytes
is null.IllegalArgumentException
- Should be thrown if eitheroffset
orlength
is less than 0 or greater thanbytes
's length, orbytes
's length minusoffset
is less thanlength
.