public abstract class CefPostDataElement extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CefPostDataElement.Type
Post data elements may represent either bytes or files.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static CefPostDataElement |
create()
Create a new CefPostDataElement object.
|
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 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(String fileName)
The post data element will represent a file.
|
String |
toString() |
String |
toString(String mimeType) |
public static final CefPostDataElement create()
public abstract boolean isReadOnly()
public abstract void setToEmpty()
public abstract void setToFile(String fileName)
public abstract void setToBytes(int size,
byte[] bytes)
public abstract CefPostDataElement.Type getType()
public abstract String getFile()
public abstract int getBytesCount()
public abstract int getBytes(int size,
byte[] bytes)
Copyright © 2017. All rights reserved.