com.tagtraum.qtsampledsp
Class QTNativePeerInputStream
java.lang.Object
java.io.InputStream
com.tagtraum.qtsampledsp.QTNativePeerInputStream
- All Implemented Interfaces:
- Closeable
- Direct Known Subclasses:
- QTFileInputStream, QTStreamInputStream
public abstract class QTNativePeerInputStream
- extends InputStream
QTNativePeerInputStream.
Date: 8/22/11
- Author:
- Hendrik Schreiber
pointer
protected long pointer
- Pointer to the native peer struct.
nativeBuffer
protected ByteBuffer nativeBuffer
- Native audio buffer.
QTNativePeerInputStream
protected QTNativePeerInputStream()
throws IOException,
UnsupportedAudioFileException
- Throws:
IOException
UnsupportedAudioFileException
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read
in class InputStream
- Throws:
IOException
isOpen
protected boolean isOpen()
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class InputStream
- Throws:
IOException
fillNativeBuffer
protected abstract void fillNativeBuffer()
throws IOException
- Throws:
IOException
close
protected abstract void close(long pointer)
throws IOException
- Throws:
IOException
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize
in class Object
- Throws:
Throwable
Copyright © 2011-2012 tagtraum industries incorporated. All Rights Reserved.