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

protected static class Blob.InMemoryBackend extends Blob.Backend
Author:
Ahmed Ashour, Ronald Brill, Lai Quang Duong
See Also:
  • Constructor Details

    • InMemoryBackend

      protected InMemoryBackend(byte[] bytes, String fileName, String type, long lastModified)
  • Method Details

    • create

      protected static Blob.InMemoryBackend create(org.htmlunit.corejs.javascript.NativeArray fileBits, String fileName, String type, long lastModified)
    • getName

      public String getName()
    • getLastModified

      public long getLastModified()
    • getSize

      public long getSize()
    • getType

      public String getType(BrowserVersion browserVersion)
    • getText

      public String getText() throws IOException
      Throws:
      IOException
    • getFile

      public File getFile()
    • getBytes

      public byte[] getBytes(int start, int end)