public class InputBytes extends ByteArrayInputStream implements Input
Input backed with data in a byte array.buf, count, mark, pos| Constructor and Description | 
|---|
| InputBytes(byte[] data)Construct for the given bytes. | 
| InputBytes(ByteBuffer data)Construct for the given bytes. | 
| Modifier and Type | Method and Description | 
|---|---|
| long | length()Return the total length of the input. | 
| int | read(long pos,
    byte[] b,
    int start,
    int len)Positioned read. | 
available, close, mark, markSupported, read, read, reset, skipreadpublic InputBytes(byte[] data)
public InputBytes(ByteBuffer data)
public long length()
            throws IOException
Inputlength in interface InputIOExceptionpublic int read(long pos,
                byte[] b,
                int start,
                int len)
         throws IOException
Inputread in interface InputIOExceptionCopyright © 2009–2020 The Apache Software Foundation. All rights reserved.