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 |
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. |
createFrom, delete, delete, exists, getChild, getContents, getContents, getFullyQualifiedName, getName, getParent, getResourceFactory, getResourceInputStream, getUnderlyingResourceObject, listResources, listResources, reify, resolveChildren
getFacet, 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
Copyright © 2014 JBoss by Red Hat. All rights reserved.