public class LimitOutputStream extends OutputStream
| Modifier and Type | Class and Description |
|---|---|
static class |
LimitOutputStream.LargeDataStore |
| Constructor and Description |
|---|
LimitOutputStream(LimitOutputStream.LargeDataStore largeDataStore,
long maxSizeToStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
long |
getLength() |
byte[] |
getSmall() |
boolean |
hasExceededSizeLimit() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public LimitOutputStream(LimitOutputStream.LargeDataStore largeDataStore, long maxSizeToStore)
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic boolean hasExceededSizeLimit()
public byte[] getSmall()
public void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic long getLength()
Copyright © 2014–2017. All rights reserved.