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