public class PipelineOutputStream
extends java.io.OutputStream
getInputStream()
).
Note: Usually, you will have exactly two threads: one to write and one to read. If you use a single thread, avoid
reading more bytes than previously written or writing more bytes than the internal buffer can handle.Modifier and Type | Class and Description |
---|---|
protected class |
PipelineOutputStream.PipelineInputStream |
Constructor and Description |
---|
PipelineOutputStream() |
PipelineOutputStream(int bufferCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.io.InputStream |
getInputStream() |
void |
write(byte[] data,
int off,
int len) |
void |
write(int b) |
public PipelineOutputStream()
public PipelineOutputStream(int bufferCapacity)
public java.io.InputStream getInputStream()
public void write(byte[] data, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
Available under the Apache License, Version 2.0 - Copyright © 2012-2016 greenrobot.org. All Rights Reserved.