public interface JsonResource extends FileResource<JsonResource>
Resource
that represents a JsonObject
Modifier and Type | Method and Description |
---|---|
javax.json.JsonArray |
getJsonArray()
Return the
JsonArray representing the underlying Json data |
javax.json.JsonObject |
getJsonObject()
Return the
JsonObject representing the underlying Json data |
javax.json.JsonStructure |
getJsonStructure()
Returns a JSON array or object that is represented in the input source
Use this method if you are unsure of the json data format
|
JsonResource |
setContents(javax.json.JsonStructure structure)
Sets the content to this
JsonStructure (could be an array or object) |
createNewFile, createTempResource, deleteOnExit, getLastModified, getParent, getSize, isDirectory, isExecutable, isReadable, isStale, isWritable, mkdir, mkdirs, monitor, monitor, refresh, renameTo, renameTo, setLastModified
getResourceOutputStream, setContents, setContents, setContents, setContents, setContents
createFrom, delete, delete, exists, getChild, getContents, getContents, getFullyQualifiedName, getName, getResourceFactory, getResourceInputStream, getUnderlyingResourceObject, listResources, listResources, reify, resolveChildren
getFacet, getFacets, getFacets, hasAllFacets, hasAllFacets, hasFacet, supports
javax.json.JsonStructure getJsonStructure()
javax.json.JsonArray getJsonArray()
JsonArray
representing the underlying Json datajavax.json.JsonObject getJsonObject()
JsonObject
representing the underlying Json dataJsonResource setContents(javax.json.JsonStructure structure)
JsonStructure
(could be an array or object)Copyright © 2014 JBoss by Red Hat. All rights reserved.