|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.red5.io.mp4.MP4DataStream
public final class MP4DataStream
Wrapper class for input streams containing MPEG4 data. Original idea based on code from MediaFrame (http://www.mediaframe.org) 11/2011 - Converted to use NIO
| Constructor Summary | |
|---|---|
MP4DataStream(FileInputStream is)
Constructs an MP4DataStream object using the specified
MPEG4 input stream. |
|
| Method Summary | |
|---|---|
void |
close()
|
FileChannel |
getChannel()
|
long |
getOffset()
|
long |
readBytes(int n)
Reads "n" bytes from the channel. |
String |
readString(int n)
Returns a string of "n" bytes in length from the channel. |
void |
skipBytes(long n)
Skip ahead in the channel by "n" bytes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MP4DataStream(FileInputStream is)
MP4DataStream object using the specified
MPEG4 input stream.
is - the MPEG4 input stream.| Method Detail |
|---|
public long readBytes(int n)
throws IOException
n -
IOException
public String readString(int n)
throws IOException
n -
IOException
public void skipBytes(long n)
throws IOException
n -
IOExceptionpublic long getOffset()
public FileChannel getChannel()
public void close()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||