Interface ByteTransfer.ArrayWriter
- Enclosing class:
ByteTransfer
public static interface ByteTransfer.ArrayWriter
Interface for writing data from byte array.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ByteTransfer.ArrayWriterof(OutputStream out) Wraps an output stream as an array writer.static ByteTransfer.ArrayWriterof(SourceDataLine out) Wraps an audio data line as an array writer.intwrite(byte[] data, int off, int len) Writes up to the specified length of bytes to the output from the given byte array.
-
Method Details
-
write
Writes up to the specified length of bytes to the output from the given byte array. Returns the number of bytes actually written.- Throws:
IOException
-
of
Wraps an audio data line as an array writer. -
of
Wraps an output stream as an array writer.
-