Class Blob.InMemoryBackend
java.lang.Object
org.htmlunit.javascript.host.file.Blob.Backend
org.htmlunit.javascript.host.file.Blob.InMemoryBackend
- All Implemented Interfaces:
Serializable
- Enclosing class:
Blob
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
InMemoryBackend
(byte[] bytes, String fileName, String type, long lastModified) -
Method Summary
Modifier and TypeMethodDescriptionprotected static Blob.InMemoryBackend
create
(org.htmlunit.corejs.javascript.NativeArray fileBits, String fileName, String type, long lastModified) byte[]
getBytes
(int start, int end) getFile()
long
getName()
long
getSize()
getText()
getType
(BrowserVersion browserVersion)
-
Field Details
-
fileName_
-
type_
-
lastModified_
private final long lastModified_ -
bytes_
private final byte[] bytes_
-
-
Constructor Details
-
InMemoryBackend
-
-
Method Details
-
create
protected static Blob.InMemoryBackend create(org.htmlunit.corejs.javascript.NativeArray fileBits, String fileName, String type, long lastModified) -
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
- Specified by:
getType
in classBlob.Backend
-
getText
- Specified by:
getText
in classBlob.Backend
- Throws:
IOException
-
getFile
- Specified by:
getFile
in classBlob.Backend
-
getBytes
public byte[] getBytes(int start, int end) - Specified by:
getBytes
in classBlob.Backend
-