public final class MP4DataStream extends Object
Constructor and Description |
---|
MP4DataStream(FileInputStream is)
Constructs an
MP4DataStream object using the specified
MPEG4 input stream. |
Modifier and Type | Method and Description |
---|---|
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.
|
public MP4DataStream(FileInputStream is)
MP4DataStream
object using the specified
MPEG4 input stream.is
- the MPEG4 input stream.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
- IOException
public long getOffset()
public FileChannel getChannel()
public void close() throws IOException
IOException
Copyright © 2006-2012 The Red5 Project