@Component(value="blConcurrentFileOutputStream") public class ConcurrentFileOutputStreamImpl extends Object implements ConcurrentFileOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected int |
defaultFileBufferSize |
| Constructor and Description |
|---|
ConcurrentFileOutputStreamImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected File |
createTempFile(File dest) |
protected Object |
getFileMoveLock(File file) |
protected String |
getTempFileSuffix() |
protected void |
replaceExisting(File src,
File dest) |
int |
write(InputStream src,
File dest) |
int |
write(InputStream src,
File dest,
int bufferSize) |
protected int |
writeToTempFile(InputStream src,
File tempFile,
int bufferSize) |
@Value(value="${asset.server.file.buffer.size:8192}")
protected int defaultFileBufferSize
public int write(InputStream src, File dest) throws IOException
write in interface ConcurrentFileOutputStreamIOExceptionpublic int write(InputStream src, File dest, int bufferSize) throws IOException
write in interface ConcurrentFileOutputStreamIOExceptionprotected File createTempFile(File dest) throws IOException
IOExceptionprotected String getTempFileSuffix()
protected int writeToTempFile(InputStream src, File tempFile, int bufferSize) throws IOException
IOExceptionprotected void replaceExisting(File src, File dest) throws IOException
IOExceptionCopyright © 2022. All rights reserved.