public class UnsafeByteArrayInputStream extends UnsafeArrayReads
Constructor and Description |
---|
UnsafeByteArrayInputStream(byte[] buf)
Constructor
|
UnsafeByteArrayInputStream(byte[] buf,
int offset,
int length)
Constructor.
|
available, endOfInput, getInt, getPos, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLong, readShort, readUnsignedByte, readUnsignedShort
readLine, readUTF, require, skipBytes
canReadInt, canReadLong, close, eof, fill, getBuffer, getInputStream, limit, position, read, read, read, readBytes, readBytes, readBytes, readByteUnsigned, readChars, readDouble, readDoubles, readFloat, readFloats, readInt, readInts, readInts, readLong, readLongs, readLongs, readShorts, readShortUnsigned, readString, readStringBuilder, readVarInt, readVarLong, rewind, setBuffer, setBuffer, setInputStream, setLimit, setPosition, setTotal, skip, skip, total
mark, markSupported, reset
public UnsafeByteArrayInputStream(byte[] buf)
buf
- Buffer to read frompublic UnsafeByteArrayInputStream(byte[] buf, int offset, int length)
buf
- Buffer to read fromoffset
- Offsetin the buffer to start reading fromlength
- Max length of the buffer to readCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.