public abstract class Box extends Object
| Modifier and Type | Field and Description |
|---|---|
static HashMap<byte[],String> |
bytetoTypeMap |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
comparebytes(byte[] arg1,
byte[] arg2) |
long |
getSize() |
String |
getType() |
protected abstract int |
load(DataInputStream fin)
Loads Box from stream.
|
protected byte[] |
read(DataInputStream in) |
protected int |
read16(DataInputStream fin) |
protected int |
read24(DataInputStream fin) |
protected int |
read32(DataInputStream in) |
protected double |
readFixedPoint1616(DataInputStream fin) |
protected String |
readText(DataInputStream in) |
protected String |
readType(DataInputStream in) |
protected long |
readU32(DataInputStream in) |
protected long |
readU64(DataInputStream fin) |
public Box(long size, String type)
public long getSize()
public String getType()
protected String readType(DataInputStream in) throws IOException
IOExceptionprotected String readText(DataInputStream in) throws IOException
IOExceptionprotected byte[] read(DataInputStream in) throws IOException
IOExceptionprotected int read32(DataInputStream in) throws IOException
IOExceptionprotected long readU32(DataInputStream in) throws IOException
IOExceptionprotected long readU64(DataInputStream fin) throws IOException
IOExceptionprotected int read24(DataInputStream fin) throws IOException
IOExceptionprotected int read16(DataInputStream fin) throws IOException
IOExceptionprotected double readFixedPoint1616(DataInputStream fin) throws IOException
IOExceptionprotected boolean comparebytes(byte[] arg1,
byte[] arg2)
protected abstract int load(DataInputStream fin) throws IOException
fin - the stream to load box fromIOException - if some I/O error occured.Copyright © 2017 TeleStax, Inc.. All Rights Reserved.