public class Resource extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected FlattrObject |
data |
| Constructor and Description |
|---|
Resource(FlattrObject data)
Creates a new resource.
|
| Modifier and Type | Method and Description |
|---|---|
FlattrObject |
toFlattrObject()
Returns the resource as
FlattrObject, for further processing. |
String |
toJSON()
Returns the resource contents as JSON string.
|
protected FlattrObject data
public Resource(FlattrObject data)
data - FlattrObject containing the resource datapublic String toJSON()
public FlattrObject toFlattrObject()
FlattrObject, for further processing.
Do not use the returned FlattrObject for modifying the resource contents.
The behaviour might be unpredictable.
Copyright © 2010–2014. All rights reserved.