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

Direct Known Subclasses:
    UlawCodec, AlawCodec, PCMtoPCMCodec

A codec can encode and/or decode audio data. It provides an AudioInputStream from which processed data may be read.

Its input format represents the format of the incoming audio data, or the format of the data in the underlying stream.

Its output format represents the format of the processed, outgoing audio data. This is the format of the data which may be read from the filtered stream.

Field Summary
 Encoding[] inputEncodings     
 Encoding[] outputEncodings     
Constructor:
 protected SunCodec(Encoding[] inputEncodings,
    Encoding[] outputEncodings) 
    Constructs a new codec object.
Method from com.sun.media.sound.SunCodec Summary:
getAudioInputStream,   getAudioInputStream,   getSourceEncodings,   getTargetEncodings,   getTargetEncodings,   getTargetFormats
Methods from javax.sound.sampled.spi.FormatConversionProvider:
getAudioInputStream,   getAudioInputStream,   getSourceEncodings,   getTargetEncodings,   getTargetEncodings,   getTargetFormats,   isConversionSupported,   isConversionSupported,   isSourceEncodingSupported,   isTargetEncodingSupported
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.media.sound.SunCodec Detail:
 abstract public AudioInputStream getAudioInputStream(Encoding targetEncoding,
    AudioInputStream sourceStream)
 abstract public AudioInputStream getAudioInputStream(AudioFormat targetFormat,
    AudioInputStream sourceStream)
 public Encoding[] getSourceEncodings() 
 public Encoding[] getTargetEncodings() 
 abstract public Encoding[] getTargetEncodings(AudioFormat sourceFormat)
 abstract public AudioFormat[] getTargetFormats(Encoding targetEncoding,
    AudioFormat sourceFormat)