public class LimitOutputStream extends OutputStream
| Modifier and Type | Class and Description |
|---|---|
static class |
LimitOutputStream.LargeDataStore |
| Constructor and Description |
|---|
LimitOutputStream(LimitOutputStream.LargeDataStore largeDataStore,
long maxSizeToStore) |
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–2015. All rights reserved.