public abstract class CefPostDataElement
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
CefPostDataElement.Type
Post data elements may represent either bytes or files.
发布数据元素可以表示字节或文件。 |
限定符和类型 | 方法和说明 |
---|---|
static CefPostDataElement |
create()
Create a new CefPostDataElement object.
创建一个新的CefPostDataElement对象。 |
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.
返回此post数据元素的类型。 |
abstract boolean |
isReadOnly()
Returns true if this object is read-only.
如果此对象是只读的,则返回true。 |
abstract void |
setToBytes(int size, byte[] bytes)
The post data element will represent bytes.
post数据元素将表示字节。 |
abstract void |
setToEmpty()
Remove all contents from the post data element.
从post数据元素中删除所有内容。 |
abstract void |
setToFile(java.lang.String fileName)
The post data element will represent a file.
post数据元素将表示一个文件。 |
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String mimeType) |
public static final CefPostDataElement create()
public 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
在类中
java.lang.Object
public java.lang.String toString(java.lang.String mimeType)