public class DiskFileWrapper extends Object implements FileWrapper
Constructor and Description |
---|
DiskFileWrapper(File file) |
Modifier and Type | Method and Description |
---|---|
String |
getCharacterSet()
Get the character set used in the file.
|
InputStream |
getInputStream()
Get an input stream that reads data from the file.
|
String |
getName()
Get the name of the file.
|
long |
getSize()
Get the size of the file.
|
private final File file
public DiskFileWrapper(File file)
public String getCharacterSet()
FileWrapper
getCharacterSet
in interface FileWrapper
public InputStream getInputStream() throws IOException
FileWrapper
getInputStream
in interface FileWrapper
IOException
public String getName()
FileWrapper
getName
in interface FileWrapper
public long getSize()
FileWrapper
getSize
in interface FileWrapper