|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
com.icdif.audio.io.EndianDataInputStream
public class EndianDataInputStream
This class provides ways of reading the bytes of the PCM Converting them to String, Short or Integer
Constructor Summary | |
---|---|
EndianDataInputStream(java.io.InputStream stream)
|
Method Summary | |
---|---|
int |
readInt24Bit()
|
int |
readInt24BitLittleEndian()
|
int |
readIntLittleEndian()
Reads an array of 4 bytes and converts it to an integer |
short |
readShortLittleEndian()
Reads an array of 2 bytes and converts it to a short |
java.lang.String |
readStringFrom4Byte()
Reads an array of 4 bytes as a string - it's useful for reading the wave metadata |
Methods inherited from class java.io.DataInputStream |
---|
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes |
Methods inherited from class java.io.FilterInputStream |
---|
available, close, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EndianDataInputStream(java.io.InputStream stream)
Method Detail |
---|
public java.lang.String readStringFrom4Byte() throws java.lang.Exception
java.lang.Exception
public short readShortLittleEndian() throws java.lang.Exception
java.lang.Exception
public int readIntLittleEndian() throws java.lang.Exception
java.lang.Exception
public int readInt24BitLittleEndian() throws java.lang.Exception
java.lang.Exception
public int readInt24Bit() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |