|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tritonus.share.sampled.file.TAudioOutputStream
public abstract class 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 |
requireEndianness(boolean bigEndian)
descendants should call this method if implicit endian conversion should be done. |
protected void |
requireSign8bit(boolean signed)
descendants should call this method if implicit sign conversion for 8-bit data should be done |
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 |
|---|
protected void requireSign8bit(boolean signed)
protected void requireEndianness(boolean bigEndian)
public AudioFormat getFormat()
AudioOutputStream
getFormat in interface AudioOutputStreampublic long getLength()
getLength in interface AudioOutputStreampublic long getCalculatedLength()
protected TDataOutputStream getDataOutputStream()
public int write(byte[] abData,
int nOffset,
int nLength)
throws IOException
write in interface AudioOutputStreamIOException
protected abstract void writeHeader()
throws IOException
IOException
public void close()
throws IOException
close in interface AudioOutputStreamIOException
protected void patchHeader()
throws IOException
IOExceptionprotected void setLengthFromCalculatedLength()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||