|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tritonus.share.sampled.file.TAudioOutputStream
Base class for classes implementing AudioOutputStream.
Constructor Summary | |
---|---|
protected |
TAudioOutputStream(AudioFormat audioFormat,
long lLength,
TDataOutputStream dataOutputStream,
boolean bDoBackPatching)
|
Method Summary | |
---|---|
void |
close()
Closes the stream. |
long |
getCalculatedLength()
Gives number of bytes already written. |
protected TDataOutputStream |
getDataOutputStream()
|
AudioFormat |
getFormat()
Retrieves the AufioFormat of this AudioOutputStream. |
long |
getLength()
Gives length of the stream. |
protected void |
patchHeader()
|
protected void |
setLengthFromCalculatedLength()
|
int |
write(byte[] abData,
int nOffset,
int nLength)
Writes audio data to the destination (file or output stream). |
protected abstract void |
writeHeader()
Writes the header of the audio file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TAudioOutputStream(AudioFormat audioFormat, long lLength, TDataOutputStream dataOutputStream, boolean bDoBackPatching)
Method Detail |
---|
public AudioFormat getFormat()
AudioOutputStream
getFormat
in interface AudioOutputStream
public long getLength()
getLength
in interface AudioOutputStream
public long getCalculatedLength()
protected TDataOutputStream getDataOutputStream()
public int write(byte[] abData, int nOffset, int nLength) throws IOException
write
in interface AudioOutputStream
IOException
protected abstract void writeHeader() throws IOException
IOException
public void close() throws IOException
close
in interface AudioOutputStream
IOException
protected void patchHeader() throws IOException
IOException
protected void setLengthFromCalculatedLength()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |