Package ej.audio.util

Class Pipe

java.lang.Object
ej.audio.util.Pipe

public class Pipe extends Object
  • Constructor Details

    • Pipe

      public Pipe(int bufferSize)
  • Method Details

    • close

      public void close()
    • getUsedSize

      public int getUsedSize()
    • getFreeSize

      public int getFreeSize()
    • waitFreeSpace

      public void waitFreeSpace(int freeSize, long timeout) throws InterruptedException
      Throws:
      InterruptedException
    • write

      public void write(byte[] array, int offset, int length) throws IOException
      Throws:
      IOException
    • read

      public int read(byte[] array, int offset, int length) throws IOException
      Throws:
      IOException
    • asInputStream

      public InputStream asInputStream()