public class ResourceReference extends Object implements Reference
| Constructor and Description |
|---|
ResourceReference(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(Object o) |
String |
getLocalURI() |
OutputStream |
getOutputStream() |
InputStream |
getStream() |
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(String URI)
URI - public boolean doesBinaryExist()
throws IOException
doesBinaryExist in interface ReferenceIOException - If there is a problem identifying
the status of the resourcepublic InputStream getStream() throws IOException
getStream in interface ReferenceIOException - If there is a problem reading the
stream.public String getURI()
public boolean isReadOnly()
isReadOnly in interface Referencepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface ReferenceIOException - If there is a problem writing or the
reference is read onlypublic void remove()
throws IOException
Referenceremove in interface ReferenceIOException - If there is a problem deleting or the
reference is read onlypublic String getLocalURI()
getLocalURI in interface Referencepublic Reference[] probeAlternativeReferences()
ReferenceprobeAlternativeReferences in interface ReferenceCopyright © 2021. All rights reserved.