Package com.biglybt.core.util
Class QTFastStartRAF
java.lang.Object
com.biglybt.core.util.QTFastStartRAF
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
static interface
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private long
private long
private byte[]
private final QTFastStartRAF.FileAccessor
private long
private boolean
private static final String[]
-
Constructor Summary
ConstructorsConstructorDescriptionQTFastStartRAF
(QTFastStartRAF.FileAccessor accessor, boolean enable) QTFastStartRAF
(File file, boolean enable) -
Method Summary
Modifier and TypeMethodDescriptionprivate long
bytesToLong
(byte[] buffer) void
close()
static byte[]
copyOfRange
(byte[] original, int from, int to) private boolean
isCompressedMoovAtom
(QTFastStartRAF.Atom moovAtom) static boolean
isSupportedExtension
(String extension) private boolean
long
length()
private int
patchCo64Atom
(QTFastStartRAF.Atom ah, int idx) private void
patchMoovAtom
(QTFastStartRAF.Atom moovAtom) private int
patchStcoAtom
(QTFastStartRAF.Atom ah, int idx) int
read
(byte[] buffer, int pos, int len) void
seek
(long pos)
-
Field Details
-
supported_extensions
-
tested
-
ATOM_FREE
- See Also:
-
ATOM_JUNK
- See Also:
-
ATOM_MDAT
- See Also:
-
ATOM_MOOV
- See Also:
-
ATOM_PNOT
- See Also:
-
ATOM_SKIP
- See Also:
-
ATOM_WIDE
- See Also:
-
ATOM_PICT
- See Also:
-
ATOM_FTYP
- See Also:
-
ATOM_CMOV
- See Also:
-
ATOM_STCO
- See Also:
-
ATOM_CO64
- See Also:
-
VALID_TOPLEVEL_ATOMS
-
input
-
transparent
private boolean transparent -
header
private byte[] header -
body_start
private long body_start -
body_end
private long body_end -
seek_position
private long seek_position
-
-
Constructor Details
-
QTFastStartRAF
- Throws:
IOException
-
QTFastStartRAF
- Throws:
IOException
-
-
Method Details
-
isSupportedExtension
-
isCompressedMoovAtom
-
isValidTopLevelAtom
-
patchMoovAtom
-
patchStcoAtom
-
patchCo64Atom
-
copyOfRange
public static byte[] copyOfRange(byte[] original, int from, int to) -
bytesToLong
private long bytesToLong(byte[] buffer) -
seek
- Throws:
IOException
-
read
- Throws:
IOException
-
length
- Throws:
IOException
-
close
- Throws:
IOException
-