class Deferred extends java.lang.Object implements ContentSupplier, NameSupplier, SizeSupplier
Modifier and Type | Field and Description |
---|---|
(package private) org.apache.commons.io.output.DeferredFileOutputStream |
dfos |
(package private) PlexusIoResourceCollection |
owner |
(package private) PlexusIoResource |
resource |
Constructor and Description |
---|
Deferred(PlexusIoResource resource,
PlexusIoResourceCollection owner,
boolean hasTransformer) |
Modifier and Type | Method and Description |
---|---|
PlexusIoResource |
asResource() |
java.io.InputStream |
getContents() |
java.lang.String |
getName()
Returns the resources name, which may include path components,
like directory names, or something like that.
|
long |
getSize() |
final org.apache.commons.io.output.DeferredFileOutputStream dfos
final PlexusIoResource resource
final PlexusIoResourceCollection owner
public Deferred(PlexusIoResource resource, PlexusIoResourceCollection owner, boolean hasTransformer) throws java.io.IOException
java.io.IOException
@Nonnull public java.io.InputStream getContents() throws java.io.IOException
getContents
in interface ContentSupplier
java.io.IOException
public long getSize()
getSize
in interface SizeSupplier
public java.lang.String getName()
NameSupplier
File.pathSeparator
getName
in interface NameSupplier
public PlexusIoResource asResource()