Package net.bramp.ffmpeg.nut
Class NutDataInputStream
- java.lang.Object
-
- net.bramp.ffmpeg.nut.NutDataInputStream
-
- All Implemented Interfaces:
DataInput
public class NutDataInputStream extends Object implements DataInput
A DataInputStream that implements a couple of custom FFmpeg Nut datatypes.
-
-
Constructor Summary
Constructors Constructor Description NutDataInputStream(InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longgetCRC()longoffset()booleanreadBoolean()bytereadByte()charreadChar()doublereadDouble()floatreadFloat()voidreadFully(byte[] b)voidreadFully(byte[] b, int off, int len)intreadInt()StringreadLine()Deprecated.longreadLong()shortreadShort()longreadSignedVarInt()longreadStartCode()intreadUnsignedByte()intreadUnsignedShort()StringreadUTF()byte[]readVarArray()intreadVarInt()longreadVarLong()voidresetCRC()intskipBytes(int n)
-
-
-
Constructor Detail
-
NutDataInputStream
public NutDataInputStream(InputStream in)
-
-
Method Detail
-
resetCRC
public void resetCRC()
-
getCRC
public long getCRC()
-
readVarInt
public int readVarInt() throws IOException
- Throws:
IOException
-
readVarLong
public long readVarLong() throws IOException
- Throws:
IOException
-
readSignedVarInt
public long readSignedVarInt() throws IOException
- Throws:
IOException
-
readVarArray
public byte[] readVarArray() throws IOException
- Throws:
IOException
-
readStartCode
public long readStartCode() throws IOException
- Throws:
IOException
-
offset
public long offset()
-
readFully
public void readFully(byte[] b) throws IOException
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readFully
public void readFully(byte[] b, int off, int len) throws IOException
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
skipBytes
public int skipBytes(int n) throws IOException
- Specified by:
skipBytesin interfaceDataInput- Throws:
IOException
-
readBoolean
public boolean readBoolean() throws IOException
- Specified by:
readBooleanin interfaceDataInput- Throws:
IOException
-
readByte
public byte readByte() throws IOException
- Specified by:
readBytein interfaceDataInput- Throws:
IOException
-
readUnsignedByte
public int readUnsignedByte() throws IOException
- Specified by:
readUnsignedBytein interfaceDataInput- Throws:
IOException
-
readShort
public short readShort() throws IOException
- Specified by:
readShortin interfaceDataInput- Throws:
IOException
-
readUnsignedShort
public int readUnsignedShort() throws IOException
- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
IOException
-
readChar
public char readChar() throws IOException
- Specified by:
readCharin interfaceDataInput- Throws:
IOException
-
readInt
public int readInt() throws IOException
- Specified by:
readIntin interfaceDataInput- Throws:
IOException
-
readLong
public long readLong() throws IOException
- Specified by:
readLongin interfaceDataInput- Throws:
IOException
-
readFloat
public float readFloat() throws IOException
- Specified by:
readFloatin interfaceDataInput- Throws:
IOException
-
readDouble
public double readDouble() throws IOException
- Specified by:
readDoublein interfaceDataInput- Throws:
IOException
-
readLine
@Deprecated public String readLine() throws IOException
Deprecated.- Specified by:
readLinein interfaceDataInput- Throws:
IOException
-
readUTF
public String readUTF() throws IOException
- Specified by:
readUTFin interfaceDataInput- Throws:
IOException
-
-