Package org.cef.network
Class CefPostDataElement
- java.lang.Object
-
- org.cef.network.CefPostDataElement
-
public abstract class CefPostDataElement extends java.lang.ObjectClass 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 classCefPostDataElement.TypePost 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 CefPostDataElementcreate()Create a new CefPostDataElement object.abstract voiddispose()Removes the native reference from an unused object.protected voidfinalize()abstract intgetBytes(int size, byte[] bytes)Read up to size bytes into bytes and return the number of bytes actually read.abstract intgetBytesCount()Return the number of bytes.abstract java.lang.StringgetFile()Return the file name.abstract CefPostDataElement.TypegetType()Return the type of this post data element.abstract booleanisReadOnly()Returns true if this object is read-only.abstract voidsetToBytes(int size, byte[] bytes)The post data element will represent bytes.abstract voidsetToEmpty()Remove all contents from the post data element.abstract voidsetToFile(java.lang.String fileName)The post data element will represent a file.java.lang.StringtoString()java.lang.StringtoString(java.lang.String mimeType)
-
-
-
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.
-
getType
public abstract CefPostDataElement.Type getType()
Return the type of this post data element.
-
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:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(java.lang.String mimeType)
-
-