com.tagtraum.qtsampledsp
Class QTNativePeerInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by 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

Field Summary
protected  ByteBuffer nativeBuffer
          Native audio buffer.
protected  long pointer
          Pointer to the native peer struct.
 
Constructor Summary
protected QTNativePeerInputStream()
           
 
Method Summary
 void close()
           
protected abstract  void close(long pointer)
           
protected abstract  void fillNativeBuffer()
           
protected  void finalize()
           
protected  boolean isOpen()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pointer

protected long pointer
Pointer to the native peer struct.


nativeBuffer

protected ByteBuffer nativeBuffer
Native audio buffer.

Constructor Detail

QTNativePeerInputStream

protected QTNativePeerInputStream()
                           throws IOException,
                                  UnsupportedAudioFileException
Throws:
IOException
UnsupportedAudioFileException
Method Detail

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.