Package davaguine.jmac.tools

Examples of davaguine.jmac.tools.InputStreamFile


     * @param stream - the stream on which this APEAudioInputStream object is based
     */
    public APEAudioInputStream(AudioFormat format, InputStream stream) {
        super(stream, format, AudioSystem.NOT_SPECIFIED);
        try {
            file = new InputStreamFile(stream);
            m_decoder = IAPEDecompress.CreateIAPEDecompress(file);

            nBlocksLeft = m_decoder.getApeInfoDecompressTotalBlocks();
            blockAlign = m_decoder.getApeInfoBlockAlign();

View Full Code Here


     * @throws IOException                   - if an I/O exception occurs
     */
    public AudioFileFormat getAudioFileFormat(InputStream stream, long mediaLength) throws UnsupportedAudioFileException, IOException {
        IAPEDecompress decoder;
        try {
            decoder = IAPEDecompress.CreateIAPEDecompress(new InputStreamFile(stream));
        } catch (JMACException e) {
            throw new UnsupportedAudioFileException("Unsupported audio file");
        } catch (EOFException e) {
            throw new UnsupportedAudioFileException("Unsupported audio file");
        }
View Full Code Here

     * @param stream - the stream on which this APEAudioInputStream object is based
     */
    public APEAudioInputStream(AudioFormat format, InputStream stream) {
        super(format, AudioSystem.NOT_SPECIFIED);
        try {
            file = new InputStreamFile(stream);
            m_decoder = IAPEDecompress.CreateIAPEDecompress(file);

            nBlocksLeft = m_decoder.getApeInfoDecompressTotalBlocks();
            blockAlign = m_decoder.getApeInfoBlockAlign();

View Full Code Here

     */
    public AudioFileFormat getAudioFileFormat(InputStream stream) throws UnsupportedAudioFileException, IOException {
        if (Globals.DEBUG) System.out.println("APEAudioFileReader.getAudioFileFormat( InputStream )");
        IAPEDecompress decoder;
        try {
            decoder = IAPEDecompress.CreateIAPEDecompress(new InputStreamFile(stream));
        } catch (JMACException e) {
            throw new UnsupportedAudioFileException("Unsupported audio file");
        } catch (EOFException e) {
            throw new UnsupportedAudioFileException("Unsupported audio file");
        }
View Full Code Here

     */
    public AudioFileFormat getAudioFileFormat(InputStream stream) throws UnsupportedAudioFileException, IOException {
        if (Globals.DEBUG) System.out.println("APEAudioFileReader.getAudioFileFormat( InputStream )");
        IAPEDecompress decoder;
        try {
            decoder = IAPEDecompress.CreateIAPEDecompress(new InputStreamFile(stream));
        } catch (JMACException e) {
            throw new UnsupportedAudioFileException("Unsupported audio file");
        } catch (EOFException e) {
            throw new UnsupportedAudioFileException("Unsupported audio file");
        }
View Full Code Here

    public APEInfo(InputStream pIO) throws IOException {
        this(pIO, null);
    }

    public APEInfo(InputStream pIO, APETag pTag) throws IOException {
        this(new InputStreamFile(pIO), pTag);
    }
View Full Code Here

TOP

Related Classes of davaguine.jmac.tools.InputStreamFile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.