Class File.FileBackend
- java.lang.Object
-
- org.htmlunit.javascript.host.file.Blob.Backend
-
- org.htmlunit.javascript.host.file.File.FileBackend
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- File
private static class File.FileBackend extends Blob.Backend
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
file_
-
Constructor Summary
Constructors Constructor Description FileBackend(java.lang.String pathname)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) byte[]
getBytes(int start, int end)
java.io.File
getFile()
long
getLastModified()
java.lang.String
getName()
long
getSize()
java.lang.String
getText()
java.lang.String
getType(BrowserVersion browserVersion)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in classBlob.Backend
-
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in classBlob.Backend
-
getSize
public long getSize()
- Specified by:
getSize
in classBlob.Backend
-
getType
public java.lang.String getType(BrowserVersion browserVersion)
- Specified by:
getType
in classBlob.Backend
-
getText
public java.lang.String getText() throws java.io.IOException
- Specified by:
getText
in classBlob.Backend
- Throws:
java.io.IOException
-
getFile
public java.io.File getFile()
- Specified by:
getFile
in classBlob.Backend
-
getBytes
byte[] getBytes(int start, int end)
- Specified by:
getBytes
in classBlob.Backend
-
-