|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
hu.netmind.ogg.LogicalInputStream
public class LogicalInputStream
A logical input stream is a single encoded media stream multiplexed into an ogg stream possibly with other logical streams.
| Method Summary | |
|---|---|
void |
close()
Close this stream. |
long |
getGranulePosition()
Get the current granule position of stream. |
byte[] |
getHeaderPacket()
Get the header packet of this logical stream. |
int |
read()
Read one byte from the logical stream. Note however, that by reading byte-wise, you may cross packet boundaries originally inserted into the stream. |
int |
read(byte[] b)
Read some bytes from the logical stream. Note however, that by reading byte-wise, you may cross packet boundaries originally inserted into the stream. |
int |
read(byte[] b,
int offset,
int length)
Read some bytes from the logical stream. Note however, that by reading byte-wise, you may cross packet boundaries originally inserted into the stream. |
byte[] |
readPacket()
Read a packet from the logical stream. Note:If the packet was already read via the byte-wise read methods, this method returns the rest of the packet. |
| Methods inherited from class java.io.InputStream |
|---|
available, mark, markSupported, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public byte[] getHeaderPacket()
throws java.io.IOException
readPacket().
java.io.IOException - If header packet does not exist.
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOException - If an I/O error occurs.
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException - If an I/O error occurs.public long getGranulePosition()
public int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamb - The buffer to fill.
java.io.IOException - If an I/O error occurs.
public int read(byte[] b,
int offset,
int length)
throws java.io.IOException
read in class java.io.InputStreamb - The buffer to fill.offset - The offset for fill buffer.length - The maximum length to read.
java.io.IOException - If an I/O error occurs.
public byte[] readPacket()
throws java.io.IOException
java.io.IOException - If an I/O error occurs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||