Package org.apache.tika.parser.hwp
Class HwpStreamReader
- java.lang.Object
-
- org.apache.tika.parser.hwp.HwpStreamReader
-
public class HwpStreamReader extends Object
-
-
Constructor Summary
Constructors Constructor Description HwpStreamReader(InputStream inputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
available()
More data to read ?void
ensureSkip(long n)
ensure skip of n byteint
uint16()
unsigned 2 byteint[]
uint16(int i)
unsigned 2 byte arraylong
uint32()
unsigned 4 byteshort
uint8()
unsigned 1 byte
-
-
-
Constructor Detail
-
HwpStreamReader
public HwpStreamReader(InputStream inputStream)
-
-
Method Detail
-
available
public boolean available() throws IOException
More data to read ?- Returns:
- Throws:
IOException
-
uint8
public short uint8() throws IOException
unsigned 1 byte- Returns:
- Throws:
IOException
-
uint16
public int uint16() throws IOException
unsigned 2 byte- Returns:
- Throws:
IOException
-
uint16
public int[] uint16(int i) throws IOException
unsigned 2 byte array- Parameters:
i
-- Returns:
- Throws:
IOException
-
uint32
public long uint32() throws IOException
unsigned 4 byte- Returns:
- Throws:
IOException
-
ensureSkip
public void ensureSkip(long n) throws IOException
ensure skip of n byte- Parameters:
n
-- Throws:
IOException
-
-