| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private String | |
| private static final int | STRING_MAGIC
Magic number |
| Access | Constructor and Description |
|---|---|
| public | |
| public | StringResource(String
the value of this StringResource. value)Construct a StringResource with the supplied value. |
| public | StringResource(Project
the owning Project. project, String the value of this StringResource. value)Construct a StringResource with the supplied project and value, doing property replacement against the project if non-null. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected synchronized String | |
| public synchronized String | |
| public synchronized InputStream | Returns: an InputStream containing this Resource's content.Overrides org. |
| public synchronized String | Returns: the name/value of this StringResource.Overrides org. |
| public synchronized OutputStream | Returns: an OutputStream to which content can be written.Overrides org. |
| protected StringResource | getRef()
Overrides org. |
| public synchronized long | Returns: the size, as a long, 0 if the Resource does not exist (for compatibility with java.io.File), or UNKNOWN_SIZE if not known.Overrides org. |
| public synchronized String | Returns: the represented String.Get the value of this StringResource, resolving to the root reference if needed. |
| public synchronized int | Returns: hash code as int.Overrides org. |
| public boolean | Returns: true if this resource exists.Overrides org. |
| public synchronized void | |
| public synchronized void | setName(String
the new name/value for this StringResource. s)Overrides org. |
| public void | setRefid(Reference
the Reference to set. r)Overrides org. |
| public synchronized void | |
| public String | Returns: the string contents of the resource.Overrides org. |
| DEFAULT_ENCODING | back to summary |
|---|---|
| private static final String DEFAULT_ENCODING | |
| encoding | back to summary |
|---|---|
| private String encoding | |
| STRING_MAGIC | back to summary |
|---|---|
| private static final int STRING_MAGIC Magic number | |
| StringResource | back to summary |
|---|---|
| public StringResource() Default constructor. | |
| StringResource | back to summary |
|---|---|
| public StringResource(String value) Construct a StringResource with the supplied value.
| |
| StringResource | back to summary |
|---|---|
| public StringResource(Project project, String value) Construct a StringResource with the supplied project and value, doing property replacement against the project if non-null. | |
| addText | back to summary |
|---|---|
| public void addText(String text) Add nested text to this resource. Properties will be expanded during this process.
| |
| getContent | back to summary |
|---|---|
| protected synchronized String getContent() Get the content of this StringResource. See
| |
| getEncoding | back to summary |
|---|---|
| public synchronized String getEncoding() Get the encoding used by this StringResource.
| |
| getInputStream | back to summary |
|---|---|
| public synchronized InputStream getInputStream() throws IOException Overrides org. Get an InputStream for the Resource.
| |
| getName | back to summary |
|---|---|
| public synchronized String getName() Overrides org. Synchronize access. | |
| getOutputStream | back to summary |
|---|---|
| public synchronized OutputStream getOutputStream() throws IOException Overrides org. Get an OutputStream for the Resource.
| |
| getRef | back to summary |
|---|---|
| protected StringResource getRef() Overrides org. Doc from org. Perform the check for circular references and return the referenced Resource.
| |
| getSize | back to summary |
|---|---|
| public synchronized long getSize() Overrides org. Get the size of this Resource.
| |
| getValue | back to summary |
|---|---|
| public synchronized String getValue() Get the value of this StringResource, resolving to the root reference if needed.
| |
| hashCode | back to summary |
|---|---|
| public synchronized int hashCode() Overrides org. Get the hash code for this Resource.
| |
| isExists | back to summary |
|---|---|
| public boolean isExists() Overrides org. The exists attribute tells whether a resource exists.
| |
| setEncoding | back to summary |
|---|---|
| public synchronized void setEncoding(String s) Set the encoding to be used for this StringResource.
| |
| setName | back to summary |
|---|---|
| public synchronized void setName(String s) Overrides org. Enforce String immutability. | |
| setRefid | back to summary |
|---|---|
| public void setRefid(Reference r) Overrides org. Overrides the super version. | |
| setValue | back to summary |
|---|---|
| public synchronized void setValue(String s) The value attribute is a semantically superior alias for the name attribute.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Get the string. See | |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteArrayOutputStream |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| private void |
| baos | back to summary |
|---|---|
| private final ByteArrayOutputStream baos | |
| StringResourceFilterOutputStream | back to summary |
|---|---|
| public StringResourceFilterOutputStream() | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources associated with the stream.
| |
| setValueFromOutputStream | back to summary |
|---|---|
| private void setValueFromOutputStream(String output) | |