public abstract class AbstractWrappedWritableResource extends Object implements IWritableResource
OutputStream manipulation .| Constructor and Description |
|---|
AbstractWrappedWritableResource(IWritableResource aBaseResource) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists() |
File |
getAsFile() |
URL |
getAsURL() |
protected IWritableResource |
getBaseResource() |
String |
getPath() |
String |
getResourceID() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetWritableCloneForPathgetWritergetOutputStreampublic AbstractWrappedWritableResource(@Nonnull IWritableResource aBaseResource)
@Nonnull protected IWritableResource getBaseResource()
@Nonnull public String getResourceID()
getResourceID in interface IResourceBasenull resource ID used e.g. for system IDs in XML
resolving.@Nonnull public String getPath()
getPath in interface IResourceBasenullpublic boolean exists()
exists in interface IResourceBasetrue if the resource exists, false
otherwise.@Nullable public URL getAsURL()
getAsURL in interface IResourceBasenull
if this resource cannot be represented as an URL.@Nullable public File getAsFile()
getAsFile in interface IResourceBasenull
if this resource cannot be represented as a file.Copyright © 2014–2017 Philip Helger. All rights reserved.