T
- The Resource
type that implements this interface.public interface WriteableResource<T extends WriteableResource<T,R>,R> extends Resource<R>
WriteableResource
allows its contents to be changedModifier and Type | Method and Description |
---|---|
OutputStream |
getResourceOutputStream()
Returns the
OutputStream for this WriteableResource |
OutputStream |
getResourceOutputStream(boolean append)
Returns the
OutputStream for this WriteableResource |
T |
setContents(char[] data)
Set the contents of this
WriteableResource to the given character array using UTF-8 encoding. |
T |
setContents(char[] data,
Charset charset)
Set the contents of this
WriteableResource to the given character array using the specified encoding. |
T |
setContents(InputStream data)
Set the contents of this
WriteableResource to the contents of the given InputStream . |
T |
setContents(String data)
Set the contents of this
WriteableResource to the given String using UTF-8 encoding. |
T |
setContents(String data,
Charset charset)
Set the contents of this
WriteableResource to the given String using the specified encoding. |
as, createFrom, delete, delete, exists, getChild, getContents, getContents, getFullyQualifiedName, getName, getParent, getResourceFactory, getResourceInputStream, getUnderlyingResourceObject, listResources, listResources, reify, resolveChildren
getFacet, getFacetAsOptional, getFacets, getFacets, hasAllFacets, hasAllFacets, hasFacet, supports
T setContents(String data)
WriteableResource
to the given String
using UTF-8 encoding.T setContents(String data, Charset charset)
WriteableResource
to the given String
using the specified encoding.T setContents(char[] data)
WriteableResource
to the given character array using UTF-8 encoding.T setContents(char[] data, Charset charset)
WriteableResource
to the given character array using the specified encoding.T setContents(InputStream data)
WriteableResource
to the contents of the given InputStream
.OutputStream getResourceOutputStream()
OutputStream
for this WriteableResource
OutputStream getResourceOutputStream(boolean append)
OutputStream
for this WriteableResource
append
- true if the OutputStream
should append to the existing contents, false if it should
overwriteCopyright © 2017 JBoss by Red Hat. All rights reserved.