Class DataAtomInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.monte.media.quicktime.DataAtomInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
DataAtomInputStream.- Author:
- Werner Randelshofer
-
Field Summary
FieldsFields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionfinal bytereadByte()doubleReads 32-bit fixed-point number divided as 16.16.doubleReads 32-bit fixed-point number divided as 2.30.doubleReads 16-bit fixed-point number divided as 8.8.final voidreadFully(byte[] b) final voidreadFully(byte[] b, int off, int len) final intreadInt()final longreadLong()Reads a 32-bit Mac timestamp (seconds since 1902).readPString(int fixedSize) Reads a Pascal String which is padded to a fixed size.final shortreadType()final intfinal longreadUInt()final intfinal longskipBytes(long n) Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
MAC_TIMESTAMP_EPOCH
protected static final long MAC_TIMESTAMP_EPOCH
-
-
Constructor Details
-
DataAtomInputStream
-
DataAtomInputStream
-
-
Method Details
-
readByte
- Throws:
IOException
-
readShort
- Throws:
IOException
-
readInt
- Throws:
IOException
-
readLong
- Throws:
IOException
-
readUByte
- Throws:
IOException
-
readUShort
- Throws:
IOException
-
readUInt
- Throws:
IOException
-
skipBytes
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readMacTimestamp
Reads a 32-bit Mac timestamp (seconds since 1902).- Returns:
- date
- Throws:
IOException- if an I/O error occurs
-
readFixed16D16
Reads 32-bit fixed-point number divided as 16.16.- Throws:
IOException
-
readFixed2D30
Reads 32-bit fixed-point number divided as 2.30.- Throws:
IOException
-
readFixed8D8
Reads 16-bit fixed-point number divided as 8.8.- Throws:
IOException
-
readType
- Throws:
IOException
-
readPString
- Throws:
IOException
-
readPString
Reads a Pascal String which is padded to a fixed size.- Throws:
IOException
-