Package org.basex.io.in
Class ArrayInput
java.lang.Object
java.io.InputStream
org.basex.io.in.BufferInput
org.basex.io.in.ArrayInput
- All Implemented Interfaces:
Closeable,AutoCloseable
This class allows reading from a cached byte array.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Constructor Summary
ConstructorsConstructorDescriptionArrayInput(byte[] in) Constructor, specifying the byte array to be read.ArrayInput(String in) Constructor, specifying the string to be read. -
Method Summary
Methods inherited from class org.basex.io.in.BufferInput
close, content, get, get, io, length, mark, markSupported, read, readBytes, readString, reset, sizeMethods inherited from class java.io.InputStream
available, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, skip, skipNBytes, transferTo
-
Constructor Details
-
ArrayInput
public ArrayInput(byte[] in) Constructor, specifying the byte array to be read.- Parameters:
in- input bytes
-
ArrayInput
Constructor, specifying the string to be read.- Parameters:
in- input bytes
-
-
Method Details
-
readByte
protected int readByte()
-