Class 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.String fileName_  
      private long lastModified_  
      private java.lang.String type_  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected InMemoryBackend​(byte[] bytes, java.lang.String fileName, java.lang.String type, long lastModified)  
    • Field Detail

      • fileName_

        private final java.lang.String fileName_
      • type_

        private final java.lang.String type_
      • lastModified_

        private final long lastModified_
      • bytes_

        private final byte[] bytes_
    • Constructor Detail

      • InMemoryBackend

        protected InMemoryBackend​(byte[] bytes,
                                  java.lang.String fileName,
                                  java.lang.String type,
                                  long lastModified)
    • Method Detail

      • create

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

        public java.lang.String getText()
                                 throws java.io.IOException
        Specified by:
        getText in class Blob.Backend
        Throws:
        java.io.IOException
      • getBytes

        public byte[] getBytes​(int start,
                               int end)
        Specified by:
        getBytes in class Blob.Backend