Class CefPostDataElement


  • public abstract class CefPostDataElement
    extends java.lang.Object
    Class used to represent a single element in the request post data. The methods of this class may be called on any thread.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CefPostDataElement.Type
      Post data elements may represent either bytes or files.
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static CefPostDataElement create()
      Create a new CefPostDataElement object.
      abstract void dispose()
      Removes the native reference from an unused object.
      protected void finalize()  
      abstract int getBytes​(int size, byte[] bytes)
      Read up to size bytes into bytes and return the number of bytes actually read.
      abstract int getBytesCount()
      Return the number of bytes.
      abstract java.lang.String getFile()
      Return the file name.
      abstract CefPostDataElement.Type getType()
      Return the type of this post data element.
      abstract boolean isReadOnly()
      Returns true if this object is read-only.
      abstract void setToBytes​(int size, byte[] bytes)
      The post data element will represent bytes.
      abstract void setToEmpty()
      Remove all contents from the post data element.
      abstract void setToFile​(java.lang.String fileName)
      The post data element will represent a file.
      java.lang.String toString()  
      java.lang.String toString​(java.lang.String mimeType)  
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • create

        public static final CefPostDataElement create()
        Create a new CefPostDataElement object.
      • dispose

        public abstract void dispose()
        Removes the native reference from an unused object.
      • isReadOnly

        public abstract boolean isReadOnly()
        Returns true if this object is read-only.
      • setToEmpty

        public abstract void setToEmpty()
        Remove all contents from the post data element.
      • setToFile

        public abstract void setToFile​(java.lang.String fileName)
        The post data element will represent a file.
      • setToBytes

        public abstract void setToBytes​(int size,
                                        byte[] bytes)
        The post data element will represent bytes. The bytes passed in will be copied.
      • getFile

        public abstract java.lang.String getFile()
        Return the file name.
      • getBytesCount

        public abstract int getBytesCount()
        Return the number of bytes.
      • getBytes

        public abstract int getBytes​(int size,
                                     byte[] bytes)
        Read up to size bytes into bytes and return the number of bytes actually read.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(java.lang.String mimeType)