Modifier and Type | Field and Description |
---|---|
private static final int | PROPERTY_MAGIC
Magic number |
private static final InputStream |
Access | Constructor and Description |
---|---|
public | |
public | PropertyResource(Project
the project to use. p, String the String name of this PropertyResource (Ant property name/key). n)Construct a new PropertyResource with the specified name. |
Modifier and Type | Method and Description |
---|---|
public boolean | Returns: true if equal to oobject to compare o)Overrides org. |
public InputStream | Returns: an InputStream containing this Resource's content.Overrides org. |
public Object | Returns: the Object value of the specified Property.Get the Object value of this PropertyResource. |
public OutputStream | Returns: an OutputStream to which content can be written.Overrides org. |
protected PropertyResource | getRef()
Overrides org. |
protected Resource | |
public 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 String | |
public int | Returns: hash code as int.Overrides org. |
public boolean | Returns: true if the Property is set, false otherwise.Overrides org. |
protected boolean | Returns: booleanLearn whether this PropertyResource either refers to another Resource or proxies another Resource due to its object property value being said Resource. |
public String | toString()
Overrides org. |
PROPERTY_MAGIC | back to summary |
---|---|
private static final int PROPERTY_MAGIC Magic number |
UNSET | back to summary |
---|---|
private static final InputStream UNSET |
PropertyResource | back to summary |
---|---|
public PropertyResource() Default constructor. |
PropertyResource | back to summary |
---|---|
public PropertyResource(Project p, String n) Construct a new PropertyResource with the specified name. |
equals | back to summary |
---|---|
public boolean equals(Object o) Overrides org. Override to implement equality with equivalent Resources, since we are capable of proxying them. |
getInputStream | back to summary |
---|---|
public InputStream getInputStream() throws IOException Overrides org. Get an InputStream for the Resource.
|
getObjectValue | back to summary |
---|---|
public Object getObjectValue() Get the Object value of this PropertyResource.
|
getOutputStream | back to summary |
---|---|
public OutputStream getOutputStream() throws IOException Overrides org. Get an OutputStream for the Resource.
|
getRef | back to summary |
---|---|
protected PropertyResource getRef() Overrides org. Doc from org. Perform the check for circular references and return the referenced Resource.
|
getReferencedOrProxied | back to summary |
---|---|
protected Resource getReferencedOrProxied() Get the referenced or proxied Resource, if applicable.
|
getSize | back to summary |
---|---|
public long getSize() Overrides org. Get the size of this Resource.
|
getValue | back to summary |
---|---|
public String getValue() Get the value of this PropertyResource.
|
hashCode | back to summary |
---|---|
public int hashCode() Overrides org. Get the hash code for this Resource.
|
isExists | back to summary |
---|---|
public boolean isExists() Overrides org. Find out whether this Resource exists.
|
isReferenceOrProxy | back to summary |
---|---|
protected boolean isReferenceOrProxy() Learn whether this PropertyResource either refers to another Resource or proxies another Resource due to its object property value being said Resource.
|
toString | back to summary |
---|---|
public String toString() Overrides org. Doc from org. Get the string representation of this Resource. |