| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final int | Returns: 32 bits swapped valuebig2little Protected helper method to swap the order of bytes in a 32 bit int |
| pack-priv final short | Returns: 16 bits swapped valuebig2little Protected helper method to swap the order of bytes in a 16 bit short |
| pack-priv static final int | Returns: the size of a PCM frame in bytes.the size of a single sample in bits sampleSizeInBits, int the number of channels channels)Calculates the frame size for PCM frames. |
| private static void | closeSilently(final InputStream
the InputStream which should be closed is)Closes the InputStream when we have read all necessary data from it, and ignores an IOException. |
| public final StandardFileFormat | getAudioFileFormat(final InputStream stream)
Implements abstract javax. Obtains the audio file format of the input stream provided. |
| public final AudioFileFormat | getAudioFileFormat(final URL url)
Implements abstract javax. Obtains the audio file format of the |
| public final AudioFileFormat | getAudioFileFormat(final File file)
Implements abstract javax. Obtains the audio file format of the |
| pack-priv abstract StandardFileFormat | Returns: anAudioFileFormat object describing the audio file
formatthe input stream from which file format information should
be extracted stream)Obtains the audio file format of the input stream provided. |
| public AudioInputStream | getAudioInputStream(final InputStream stream)
Implements abstract javax. Obtains an audio input stream from the input stream provided. |
| public final AudioInputStream | getAudioInputStream(final URL url)
Implements abstract javax. Obtains an audio input stream from the |
| public final AudioInputStream | getAudioInputStream(final File file)
Implements abstract javax. Obtains an audio input stream from the |
| pack-priv final int | Returns: 32 bits swapped value.rllong Protected helper method to read 64 bits and changing the order of each bytes. |
| pack-priv final short | Returns: the swapped value.rlshort Protected helper method to read 16 bits value. |
| SunFileReader | back to summary |
|---|---|
| pack-priv SunFileReader() | |
| big2little | back to summary |
|---|---|
| pack-priv final int big2little(int i) big2little Protected helper method to swap the order of bytes in a 32 bit int
| |
| big2littleShort | back to summary |
|---|---|
| pack-priv final short big2littleShort(short i) big2little Protected helper method to swap the order of bytes in a 16 bit short
| |
| calculatePCMFrameSize | back to summary |
|---|---|
| pack-priv static final int calculatePCMFrameSize(int sampleSizeInBits, int channels) Calculates the frame size for PCM frames. Note that this method is appropriate for non-packed samples. For instance, 12 bit, 2 channels will return 4 bytes, not 3.
| |
| closeSilently | back to summary |
|---|---|
| private static void closeSilently(final InputStream is) Closes the InputStream when we have read all necessary data from it, and ignores an IOException.
| |
| getAudioFileFormat | back to summary |
|---|---|
| public final StandardFileFormat getAudioFileFormat(final InputStream stream) throws UnsupportedAudioFileException, IOException Implements abstract javax. Doc from javax. Obtains the audio file format of the input stream provided. The stream
must point to valid audio file data. In general, audio file readers may
need to read some data from the stream before determining whether they
support it. These parsers must be able to mark the stream, read enough
data to determine whether they support the stream, and reset the stream's
read pointer to its original position. If the input stream does not
support this, this method may fail with an
| |
| getAudioFileFormat | back to summary |
|---|---|
| public final AudioFileFormat getAudioFileFormat(final URL url) throws UnsupportedAudioFileException, IOException Implements abstract javax. Doc from javax. Obtains the audio file format of the
| |
| getAudioFileFormat | back to summary |
|---|---|
| public final AudioFileFormat getAudioFileFormat(final File file) throws UnsupportedAudioFileException, IOException Implements abstract javax. Doc from javax. Obtains the audio file format of the
| |
| getAudioFileFormatImpl | back to summary |
|---|---|
| pack-priv abstract StandardFileFormat getAudioFileFormatImpl(InputStream stream) throws UnsupportedAudioFileException, IOException Obtains the audio file format of the input stream provided. The stream
must point to valid audio file data. Note that default implementation of
| |
| getAudioInputStream | back to summary |
|---|---|
| public AudioInputStream getAudioInputStream(final InputStream stream) throws UnsupportedAudioFileException, IOException Implements abstract javax. Doc from javax. Obtains an audio input stream from the input stream provided. The stream
must point to valid audio file data. In general, audio file readers may
need to read some data from the stream before determining whether they
support it. These parsers must be able to mark the stream, read enough
data to determine whether they support the stream, and reset the stream's
read pointer to its original position. If the input stream does not
support this, this method may fail with an
| |
| getAudioInputStream | back to summary |
|---|---|
| public final AudioInputStream getAudioInputStream(final URL url) throws UnsupportedAudioFileException, IOException Implements abstract javax. Doc from javax. Obtains an audio input stream from the
| |
| getAudioInputStream | back to summary |
|---|---|
| public final AudioInputStream getAudioInputStream(final File file) throws UnsupportedAudioFileException, IOException Implements abstract javax. Doc from javax. Obtains an audio input stream from the
| |
| rllong | back to summary |
|---|---|
| pack-priv final int rllong(DataInputStream dis) throws IOException rllong Protected helper method to read 64 bits and changing the order of each bytes.
| |
| rlshort | back to summary |
|---|---|
| pack-priv final short rlshort(DataInputStream dis) throws IOException rlshort Protected helper method to read 16 bits value. Swap high with low byte.
| |