Interface ByteTransfer.ArrayReader
- Enclosing class:
ByteTransfer
public static interface ByteTransfer.ArrayReader
Interface for reading data to byte array.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ByteTransfer.ArrayReaderof(InputStream in) Wraps an input stream as an array reader.static ByteTransfer.ArrayReaderof(TargetDataLine in) Wraps an audio data line as an array reader.intread(byte[] dest, int off, int len) Reads up to the specified length of bytes from the input into the given byte array.
-
Method Details
-
read
Reads up to the specified length of bytes from the input into the given byte array. Returns the number of bytes actually read, or-1if the input has reached its end.- Throws:
IOException
-
of
Wraps an audio data line as an array reader. -
of
Wraps an input stream as an array reader.
-