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, skip
read
public InputBytes(byte[] data)
public InputBytes(ByteBuffer data)
public long length() throws IOException
Input
length
in interface Input
IOException
public int read(long pos, byte[] b, int start, int len) throws IOException
Input
read
in interface Input
IOException
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.