@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 ConcurrentFileOutputStream
IOException
public int write(InputStream src, File dest, int bufferSize) throws IOException
write
in interface ConcurrentFileOutputStream
IOException
protected File createTempFile(File dest) throws IOException
IOException
protected String getTempFileSuffix()
protected int writeToTempFile(InputStream src, File tempFile, int bufferSize) throws IOException
IOException
protected void replaceExisting(File src, File dest) throws IOException
IOException
Copyright © 2019. All rights reserved.