Package ej.audio.util
Class Pipe
java.lang.Object
ej.audio.util.Pipe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intintintread(byte[] array, int offset, int length) voidwaitFreeSpace(int freeSize, long timeout) voidwrite(byte[] array, int offset, int length)
-
Constructor Details
-
Pipe
public Pipe(int bufferSize)
-
-
Method Details
-
close
public void close() -
getUsedSize
public int getUsedSize() -
getFreeSize
public int getFreeSize() -
waitFreeSpace
- Throws:
InterruptedException
-
write
- Throws:
IOException
-
read
- Throws:
IOException
-
asInputStream
-