Save This Page
Home » openjdk-7 » com.sun.media » sound » [javadoc | source]
com.sun.media.sound
abstract class: SunFileWriter [javadoc | source]
java.lang.Object
   javax.sound.sampled.spi.AudioFileWriter
      com.sun.media.sound.SunFileWriter

Direct Known Subclasses:
    AiffFileWriter, AuFileWriter, WaveFileWriter

Abstract File Writer class.
Nested Class Summary:
protected class  SunFileWriter.NoCloseInputStream  InputStream wrapper class which prevent source stream from being closed. The class is usefull for use with SequenceInputStream to prevent closing of the source input streams. 
Field Summary
protected static final  int bufferSize     
protected static final  int bisBufferSize     
final  Type[] types     
Constructor:
 SunFileWriter(Type[] types) 
    Constructs a new SunParser object.
Method from com.sun.media.sound.SunFileWriter Summary:
big2little,   big2littleShort,   getAudioFileTypes,   getAudioFileTypes,   rllong,   rlshort,   write,   write
Methods from javax.sound.sampled.spi.AudioFileWriter:
getAudioFileTypes,   getAudioFileTypes,   isFileTypeSupported,   isFileTypeSupported,   write,   write
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.media.sound.SunFileWriter Detail:
 protected int big2little(int i) 
    big2little Protected helper method to swap the order of bytes in a 32 bit int
 protected short big2littleShort(short i) 
    big2little Protected helper method to swap the order of bytes in a 16 bit short
 public Type[] getAudioFileTypes() 
 abstract public Type[] getAudioFileTypes(AudioInputStream stream)
 protected int rllong(DataInputStream dis) throws IOException 
    rllong Protected helper method to read 64 bits and changing the order of each bytes.
 protected short rlshort(DataInputStream dis) throws IOException 
    rlshort Protected helper method to read 16 bits value. Swap high with low byte.
 abstract public int write(AudioInputStream stream,
    Type fileType,
    OutputStream out) throws IOException
 abstract public int write(AudioInputStream stream,
    Type fileType,
    File out) throws IOException