Package host.anzo.commons.io.binary
Class FileBinaryReader
java.lang.Object
host.anzo.commons.io.binary.FileBinaryReader
- All Implemented Interfaces:
AutoCloseable
- Since:
- 29.12.2015
-
Constructor Summary
ConstructorsConstructorDescriptionFileBinaryReader(String path) FileBinaryReader(String path, boolean castException) FileBinaryReader(Path path) FileBinaryReader(Path path, boolean castException) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longlonggetSize()booleanhasFile()voidreadB(byte[] dst) voidreadB(byte[] dst, int offset, int len) byte[]readB(int size) bytereadC()booleanreadCB()intreadCD()intreadD()longreadDQ()floatreadF()doublereadFF()shortreadH()intreadHD()longreadQ()intreadQD()readQS()final @NotNull StringreadQSS()readS()Read null-terminated stringreadS(int size) readS(long size) voidsetPosition(int position) final voidskip(int bytes)
-
Constructor Details
-
FileBinaryReader
-
FileBinaryReader
-
FileBinaryReader
-
FileBinaryReader
-
-
Method Details
-
readB
- Throws:
IOException
-
readB
- Throws:
IOException
-
readB
- Throws:
IOException
-
readCD
- Throws:
IOException
-
readC
- Throws:
IOException
-
readCB
- Throws:
IOException
-
readH
- Throws:
IOException
-
readHD
- Throws:
IOException
-
readD
- Throws:
IOException
-
readDQ
- Throws:
IOException
-
readQ
- Throws:
IOException
-
readQD
- Throws:
IOException
-
readF
- Throws:
IOException
-
readFF
- Throws:
IOException
-
readS
Read null-terminated string- Returns:
- reader string
- Throws:
IOException
-
readQS
- Throws:
IOException
-
readQSS
- Throws:
IOException
-
readS
- Throws:
IOException
-
readS
- Throws:
IOException
-
readS
- Throws:
IOException
-
setPosition
- Throws:
IOException
-
getPosition
- Throws:
IOException
-
getSize
- Throws:
IOException
-
hasFile
public boolean hasFile() -
getPositionHex
- Throws:
IOException
-
skip
- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-