@Deprecated @Immutable public final class FileNode extends JsonNode
FileNode class is responsible for knowing how to create a URL for a file, create a JSON representation of a
file, and to create the appropriate JCR nodes for a file.| Constructor and Description |
|---|
FileNode(Workspace workspace,
String path,
File file)
Deprecated.
|
FileNode(Workspace workspace,
String path,
File file,
boolean versionable)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getContent()
Deprecated.
|
String |
getPath()
Deprecated.
|
URL |
getUrl()
Deprecated.
|
children, getId, properties, toString, withChild, withMixin, withPrimaryType, withPropertyaccumulate, append, doubleToString, get, getBoolean, getDouble, getInt, getJSONArray, getJSONObject, getLong, getString, has, isNull, keys, length, names, numberToString, opt, optBoolean, optBoolean, optDouble, optDouble, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optString, optString, put, put, put, put, put, put, put, putOpt, quote, remove, toJSONArray, toString, writepublic FileNode(Workspace workspace, String path, File file) throws Exception
workspace - the workspace being used (never null)path - the path in the workspace (never null)file - the file on the local file system (never null)Exception - if there is a problem constructing the file nodepublic FileNode(Workspace workspace, String path, File file, boolean versionable) throws Exception
workspace - the workspace being used (never null)path - the path in the workspace (never null)file - the file on the local file system (never null)versionable - true if the file node should be versionableException - if there is a problem constructing the file nodepublic byte[] getContent()
throws Exception
getContent in class JsonNodeException - if there is a problem obtaining the node contentJsonNode.getContent()public String getPath()
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.