public class PropertyResource extends Resource
MAGIC, UNKNOWN_DATETIME, UNKNOWN_SIZEdescription, location, project| Constructor and Description |
|---|
PropertyResource()
Default constructor.
|
PropertyResource(Project p,
java.lang.String n)
Construct a new PropertyResource with the specified name.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getInputStream()
Get an InputStream for the Resource.
|
java.io.OutputStream |
getOutputStream()
Get an OutputStream for the Resource.
|
long |
getSize()
Get the size of this Resource.
|
java.lang.String |
getValue()
Get the value of this PropertyResource.
|
int |
hashCode()
Get the hash code for this Resource.
|
boolean |
isExists()
Find out whether this Resource exists.
|
java.lang.String |
toString()
Get the string.
|
clone, compareTo, equals, getLastModified, getMagicNumber, getName, isDirectory, isFilesystemOnly, iterator, setDirectory, setExists, setLastModified, setName, setRefid, setSize, size, toLongStringcheckAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, setChecked, tooManyAttributesgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectpublic PropertyResource()
public PropertyResource(Project p, java.lang.String n)
p - the project to use.n - the String name of this PropertyResource (Ant property name/key).public java.lang.String getValue()
public boolean isExists()
public long getSize()
public int hashCode()
public java.lang.String toString()
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class Resourcejava.io.IOException - if unable to provide the content of this
Resource as a stream.java.lang.UnsupportedOperationException - if InputStreams are not
supported for this Resource type.public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in class Resourcejava.io.IOException - if unable to provide the content of this
Resource as a stream.java.lang.UnsupportedOperationException - if OutputStreams are not
supported for this Resource type.