Module io.smallrye.common.io
Package io.smallrye.common.io
Class BufferedFile.BufferedFileInputStream
java.lang.Object
java.io.InputStream
java.io.FileInputStream
io.smallrye.common.io.BufferedFile.BufferedFileInputStream
- All Implemented Interfaces:
Closeable,DataInput,AutoCloseable
- Enclosing class:
BufferedFile
public final class BufferedFile.BufferedFileInputStream
extends FileInputStream
implements DataInput
An
InputStream view that extends FileInputStream and implements
DataInput with big-endian semantics. Delegates to the enclosing
BufferedFile.-
Method Summary
Modifier and TypeMethodDescriptionintvoidclose()voidmark(int readLimit) booleanintread()intread(byte[] b) intread(byte[] b, int off, int len) booleanbytereadByte()charreadChar()doublefloatvoidreadFully(byte[] b) voidreadFully(byte[] b, int off, int len) intreadInt()readLine()longreadLong()shortintintreadUTF()voidreset()longskip(long n) intskipBytes(int n) Methods inherited from class java.io.FileInputStream
getFD, readAllBytes, readNBytesMethods inherited from class java.io.InputStream
nullInputStream, readNBytes, skipNBytes, transferTo
-
Method Details
-
read
- Overrides:
readin classFileInputStream- Throws:
IOException
-
read
- Overrides:
readin classFileInputStream- Throws:
IOException
-
read
- Overrides:
readin classFileInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classFileInputStream- Throws:
IOException
-
available
- Overrides:
availablein classFileInputStream- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFileInputStream
-
getChannel
- Overrides:
getChannelin classFileInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
mark
public void mark(int readLimit) - Overrides:
markin classInputStream
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
skipBytes
- Specified by:
skipBytesin interfaceDataInput- Throws:
IOException
-
readBoolean
- Specified by:
readBooleanin interfaceDataInput- Throws:
IOException
-
readByte
- Specified by:
readBytein interfaceDataInput- Throws:
IOException
-
readUnsignedByte
- Specified by:
readUnsignedBytein interfaceDataInput- Throws:
IOException
-
readShort
- Specified by:
readShortin interfaceDataInput- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
IOException
-
readChar
- Specified by:
readCharin interfaceDataInput- Throws:
IOException
-
readInt
- Specified by:
readIntin interfaceDataInput- Throws:
IOException
-
readLong
- Specified by:
readLongin interfaceDataInput- Throws:
IOException
-
readFloat
- Specified by:
readFloatin interfaceDataInput- Throws:
IOException
-
readDouble
- Specified by:
readDoublein interfaceDataInput- Throws:
IOException
-
readLine
- Specified by:
readLinein interfaceDataInput- Throws:
IOException
-
readUTF
- Specified by:
readUTFin interfaceDataInput- Throws:
IOException
-