public abstract class CefPostDataElement
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CefPostDataElement.Type
Post data elements may represent either bytes or files.
|
| Modifier and Type | Method and 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) |
public static final CefPostDataElement create()
public abstract void dispose()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic abstract int getBytes(int size,
byte[] bytes)
public abstract int getBytesCount()
public abstract java.lang.String getFile()
public abstract CefPostDataElement.Type getType()
public abstract boolean isReadOnly()
public abstract void setToBytes(int size,
byte[] bytes)
public abstract void setToEmpty()
public abstract void setToFile(java.lang.String fileName)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(java.lang.String mimeType)