Module org.htmlunit

Interface Blob.Backend

All Superinterfaces:
Serializable
All Known Implementing Classes:
Blob.InMemoryBackend
Enclosing class:
Blob

protected static interface Blob.Backend extends Serializable
The backend used for saving the blob.
  • Method Details

    • getName

      String getName()
      Returns the name.
      Returns:
      the name
    • getLastModified

      long getLastModified()
      Returns the last modified timestamp as long.
      Returns:
      the last modified timestamp as long
    • getSize

      long getSize()
      Returns the size.
      Returns:
      the size
    • getType

      String getType(BrowserVersion browserVersion)
      Returns the type.
      Parameters:
      browserVersion - the BrowserVersion
      Returns:
      the type
    • getText

      String getText() throws IOException
      Returns the text.
      Returns:
      the text
      Throws:
      IOException - in case of error
    • getBytes

      byte[] getBytes(int start, int end)
      Returns the bytes.
      Parameters:
      start - the start position
      end - the end position
      Returns:
      the bytes
    • getKeyDataPair

      KeyDataPair getKeyDataPair(String name, String fileName, String contentType)
      Returns the KeyDataPair for this Blob/File.
      Parameters:
      name - the name
      fileName - the file name
      contentType - the content type
      Returns:
      the KeyDataPair to hold the data