org.mobicents.media.server.impl.resource.video
Class Box
java.lang.Object
org.mobicents.media.server.impl.resource.video.Box
- Direct Known Subclasses:
- DataInformationBox, EditBox, FileTypeBox, FullBox, MediaBox, MediaInformationBox, MovieBox, SampleTableBox, TrackBox
public abstract class Box
- extends java.lang.Object
- Author:
- kulikov
|
Constructor Summary |
Box(long size,
java.lang.String type)
|
|
Method Summary |
long |
getSize()
|
java.lang.String |
getType()
|
protected abstract int |
load(java.io.DataInputStream fin)
Loads Box from stream. |
protected int |
readLen(java.io.DataInputStream in)
|
protected java.lang.String |
readText(java.io.DataInputStream in)
|
protected java.lang.String |
readType(java.io.DataInputStream in)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Box
public Box(long size,
java.lang.String type)
getSize
public long getSize()
getType
public java.lang.String getType()
readType
protected java.lang.String readType(java.io.DataInputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
readLen
protected int readLen(java.io.DataInputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
readText
protected java.lang.String readText(java.io.DataInputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
load
protected abstract int load(java.io.DataInputStream fin)
throws java.io.IOException
- Loads Box from stream.
- Parameters:
fin - the stream to load box from
- Returns:
- the number of bytes readed from stream; *
- Throws:
java.io.IOException - if some I/O error occured.
Copyright © 2009. All Rights Reserved.