public class FileBuffer
extends java.lang.Object
Constructor and Description |
---|
FileBuffer(java.io.InputStream input)
Constructor for FileBuffer.
|
FileBuffer(java.io.InputStream input,
int bufferSize)
Constructor for FileBuffer.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
getExceptionWhileBuffering()
Returns the exceptionWhileBuffering.
|
java.lang.String |
getOriginalFileName()
Returns the original file name.
|
boolean |
isEmtpy()
Returns true if the file buffer is empty
|
void |
moveContentTo(java.io.OutputStream out)
Move the content of the buffer to an output stream and sets the buffer to null.
|
void |
setOriginalFileName(java.lang.String originalFileName)
Sets the original file name.
|
public FileBuffer(java.io.InputStream input)
input
- the input stream to fill the bufferpublic FileBuffer(java.io.InputStream input, int bufferSize)
input
- the input stream to fill the bufferpublic java.lang.Exception getExceptionWhileBuffering()
public void setOriginalFileName(java.lang.String originalFileName)
originalFileName
- The original file name to setpublic java.lang.String getOriginalFileName()
public boolean isEmtpy()
public void moveContentTo(java.io.OutputStream out) throws java.io.IOException
out
- the output stream where the data is to sendjava.io.IOException
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de