Class Blob.InMemoryBackend
- java.lang.Object
-
- org.htmlunit.javascript.host.file.Blob.Backend
-
- org.htmlunit.javascript.host.file.Blob.InMemoryBackend
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Blob
protected static class Blob.InMemoryBackend extends Blob.Backend
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]bytes_private java.lang.StringfileName_private longlastModified_private java.lang.Stringtype_
-
Constructor Summary
Constructors Modifier Constructor Description protectedInMemoryBackend(byte[] bytes, java.lang.String fileName, java.lang.String type, long lastModified)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static Blob.InMemoryBackendcreate(org.htmlunit.corejs.javascript.NativeArray fileBits, java.lang.String fileName, java.lang.String type, long lastModified)byte[]getBytes(int start, int end)java.io.FilegetFile()longgetLastModified()java.lang.StringgetName()longgetSize()java.lang.StringgetText()java.lang.StringgetType(BrowserVersion browserVersion)
-
-
-
Method Detail
-
create
protected static Blob.InMemoryBackend create(org.htmlunit.corejs.javascript.NativeArray fileBits, java.lang.String fileName, java.lang.String type, long lastModified)
-
getName
public java.lang.String 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
public java.lang.String getType(BrowserVersion browserVersion)
- Specified by:
getTypein classBlob.Backend
-
getText
public java.lang.String getText() throws java.io.IOException- Specified by:
getTextin classBlob.Backend- Throws:
java.io.IOException
-
getFile
public java.io.File getFile()
- Specified by:
getFilein classBlob.Backend
-
getBytes
public byte[] getBytes(int start, int end)- Specified by:
getBytesin classBlob.Backend
-
-