public class BufferedFileResource extends Object implements FileResource
<p>Implementation of a file resource which wraps a buffered inputstream and allows re-using a once opened stream.</p>
| Constructor and Description |
|---|
BufferedFileResource(FileResource fileResource)
<p>Constructor.
|
BufferedFileResource(FileResource fileResource,
int bufferSize)
<p>Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InputStream |
createStream() |
File |
getFile() |
String |
toString() |
public BufferedFileResource(FileResource fileResource)
<p>Constructor.</p>
fileResource - The wrapped file resource.public BufferedFileResource(FileResource fileResource, int bufferSize)
<p>Constructor.</p>
fileResource - The wrapped file resource.bufferSize - The buffer size in bytes to use.public InputStream createStream() throws IOException
createStream in interface FileResourceIOExceptionpublic File getFile() throws IOException
getFile in interface FileResourceIOExceptionpublic void close()
throws IOException
close in interface Resourceclose in interface AutoCloseableIOExceptionCopyright © 2016–2021 jQAssistant Development Team. All rights reserved.