public class ResourceReference extends java.lang.Object implements Reference
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
URI |
Constructor and Description |
---|
ResourceReference(java.lang.String URI)
Creates a new resource reference with URI in the format
of a fully global resource URI, IE: "/path/file.ext".
|
Modifier and Type | Method and Description |
---|---|
boolean |
doesBinaryExist() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getLocalURI() |
java.io.OutputStream |
getOutputStream() |
java.io.InputStream |
getStream() |
java.lang.String |
getURI() |
boolean |
isReadOnly() |
Reference[] |
probeAlternativeReferences()
Determines any platform-specific and reference-type specific
alternatives versions of this reference which may exist.
|
void |
remove()
Removes the binary data located by this reference.
|
public ResourceReference(java.lang.String URI)
URI
- public boolean doesBinaryExist() throws java.io.IOException
doesBinaryExist
in interface Reference
java.io.IOException
- If there is a problem identifying
the status of the resourcepublic java.io.InputStream getStream() throws java.io.IOException
public java.lang.String getURI()
public boolean isReadOnly()
isReadOnly
in interface Reference
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface Reference
java.io.IOException
- If there is a problem writing or the
reference is read onlypublic void remove() throws java.io.IOException
Reference
public java.lang.String getLocalURI()
getLocalURI
in interface Reference
public Reference[] probeAlternativeReferences()
Reference
probeAlternativeReferences
in interface Reference