public class DiskThresholdOutputStream extends ThresholdOutputStream
| 构造器和说明 |
|---|
DiskThresholdOutputStream(int sizeThreshold,
java.io.File outputFile) |
DiskThresholdOutputStream(int sizeThreshold,
java.io.File outputFile,
java.lang.String prefix,
java.lang.String suffix,
java.io.File directory) |
DiskThresholdOutputStream(int sizeThreshold,
java.lang.String prefix,
java.lang.String suffix,
java.io.File directory) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
byte[] |
getData() |
java.io.File |
getFile() |
protected java.io.OutputStream |
getStream() |
boolean |
isInMemory() |
protected void |
reachThreshold() |
void |
writeTo(java.io.OutputStream outputStream) |
checkReachThreshold, flush, getByteCount, getSizeThreshold, isThresholdExceeded, resetByteCount, write, write, writepublic DiskThresholdOutputStream(int sizeThreshold,
java.io.File outputFile,
java.lang.String prefix,
java.lang.String suffix,
java.io.File directory)
public DiskThresholdOutputStream(int sizeThreshold,
java.io.File outputFile)
public DiskThresholdOutputStream(int sizeThreshold,
java.lang.String prefix,
java.lang.String suffix,
java.io.File directory)
protected java.io.OutputStream getStream()
getStream 在类中 ThresholdOutputStreamprotected void reachThreshold()
throws java.io.IOException
reachThreshold 在类中 ThresholdOutputStreamjava.io.IOExceptionpublic boolean isInMemory()
public byte[] getData()
public java.io.File getFile()
public void close()
throws java.io.IOException
close 在接口中 java.io.Closeableclose 在接口中 java.lang.AutoCloseableclose 在类中 ThresholdOutputStreamjava.io.IOExceptionpublic void writeTo(java.io.OutputStream outputStream)
throws java.io.IOException
java.io.IOException