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.OutputStreamjava.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionAvailable under the Apache License, Version 2.0 - Copyright © 2012-2020 greenrobot.org. All Rights Reserved.