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
- Author:
- Ahmed Ashour, Ronald Brill, Lai Quang Duong
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInMemoryBackend(byte[] bytes, String fileName, String type, long lastModified) -
Method Summary
Modifier and TypeMethodDescriptionprotected static Blob.InMemoryBackendcreate(org.htmlunit.corejs.javascript.NativeArray fileBits, String fileName, String type, long lastModified) byte[]getBytes(int start, int end) getFile()longgetName()longgetSize()getText()getType(BrowserVersion browserVersion)
-
Constructor Details
-
InMemoryBackend
-
-
Method Details
-
create
protected static Blob.InMemoryBackend create(org.htmlunit.corejs.javascript.NativeArray fileBits, String fileName, String type, long lastModified) -
getName
-
getLastModified
public long getLastModified() -
getSize
public long getSize() -
getType
-
getText
- Throws:
IOException
-
getFile
-
getBytes
public byte[] getBytes(int start, int end)
-