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
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)
-
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:
getNamein classBlob.Backend
-
getLastModified
public long getLastModified()- Specified by:
getLastModifiedin classBlob.Backend
-
getSize
public long getSize()- Specified by:
getSizein classBlob.Backend
-
getType
- Specified by:
getTypein classBlob.Backend
-
getText
- Specified by:
getTextin classBlob.Backend- Throws:
IOException
-
getFile
- Specified by:
getFilein classBlob.Backend
-
getBytes
public byte[] getBytes(int start, int end) - Specified by:
getBytesin classBlob.Backend
-