public abstract class TAudioFileReader extends AudioFileReader
| Modifier | Constructor and Description |
|---|---|
protected |
TAudioFileReader(int nMarkLimit) |
protected |
TAudioFileReader(int nMarkLimit,
boolean bRereading) |
| Modifier and Type | Method and Description |
|---|---|
protected static int |
calculateFrameSize(int nSampleSize,
int nNumChannels) |
AudioFileFormat |
getAudioFileFormat(File file)
Get an AudioFileFormat object for a File.
|
AudioFileFormat |
getAudioFileFormat(InputStream inputStream)
Get an AudioFileFormat object for an InputStream.
|
protected abstract AudioFileFormat |
getAudioFileFormat(InputStream inputStream,
long lFileLengthInBytes)
Get an AudioFileFormat (internal implementation).
|
AudioFileFormat |
getAudioFileFormat(URL url)
Get an AudioFileFormat object for a URL.
|
AudioInputStream |
getAudioInputStream(File file)
Get an AudioInputStream object for a file.
|
AudioInputStream |
getAudioInputStream(InputStream inputStream)
Get an AudioInputStream object for an InputStream.
|
protected AudioInputStream |
getAudioInputStream(InputStream inputStream,
long lFileLengthInBytes)
Get an AudioInputStream (internal implementation).
|
AudioInputStream |
getAudioInputStream(URL url)
Get an AudioInputStream object for a URL.
|
static double |
readIeeeExtended(DataInputStream dis) |
static int |
readLittleEndianInt(InputStream is) |
static short |
readLittleEndianShort(InputStream is) |
protected TAudioFileReader(int nMarkLimit)
protected TAudioFileReader(int nMarkLimit,
boolean bRereading)
public AudioFileFormat getAudioFileFormat(File file) throws UnsupportedAudioFileException, IOException
getAudioFileFormat in class AudioFileReaderfile - the file to read from.UnsupportedAudioFileExceptionIOExceptionpublic AudioFileFormat getAudioFileFormat(URL url) throws UnsupportedAudioFileException, IOException
getAudioFileFormat in class AudioFileReaderurl - the URL to read from.UnsupportedAudioFileExceptionIOExceptionpublic AudioFileFormat getAudioFileFormat(InputStream inputStream) throws UnsupportedAudioFileException, IOException
getAudioFileFormat in class AudioFileReaderinputStream - the stream to read from.UnsupportedAudioFileExceptionIOExceptionprotected abstract AudioFileFormat getAudioFileFormat(InputStream inputStream, long lFileLengthInBytes) throws UnsupportedAudioFileException, IOException
inputStream - The InputStream to read from. It should be tested if
it is markable. If not, and it is re-reading, wrap it into a
BufferedInputStream with getMarkLimit() size.lFileLengthInBytes - The size of the originating file, if known. If
it isn't known, AudioSystem.NOT_SPECIFIED should be passed.
This value may be used for byteLength in AudioFileFormat, if
this value can't be derived from the informmation in the file
header.UnsupportedAudioFileExceptionIOExceptionpublic AudioInputStream getAudioInputStream(File file) throws UnsupportedAudioFileException, IOException
getAudioInputStream in class AudioFileReaderfile - the File object to read from.UnsupportedAudioFileExceptionIOExceptionpublic AudioInputStream getAudioInputStream(URL url) throws UnsupportedAudioFileException, IOException
getAudioInputStream in class AudioFileReaderurl - the URL to read from.UnsupportedAudioFileExceptionIOExceptionpublic AudioInputStream getAudioInputStream(InputStream inputStream) throws UnsupportedAudioFileException, IOException
getAudioInputStream in class AudioFileReaderinputStream - the stream to read from.UnsupportedAudioFileExceptionIOExceptionprotected AudioInputStream getAudioInputStream(InputStream inputStream, long lFileLengthInBytes) throws UnsupportedAudioFileException, IOException
inputStream - The InputStream to read from. It should be tested if
it is markable. If not, and it is re-reading, wrap it into a
BufferedInputStream with getMarkLimit() size.lFileLengthInBytes - The size of the originating file, if known. If
it isn't known, AudioSystem.NOT_SPECIFIED should be passed.
This value may be used for byteLength in AudioFileFormat, if
this value can't be derived from the information in the file
header.UnsupportedAudioFileExceptionIOExceptionprotected static int calculateFrameSize(int nSampleSize,
int nNumChannels)
public static int readLittleEndianInt(InputStream is) throws IOException
IOExceptionpublic static short readLittleEndianShort(InputStream is) throws IOException
IOExceptionpublic static double readIeeeExtended(DataInputStream dis) throws IOException
IOExceptionCopyright © 2016. All Rights Reserved.