Class Deferred
- java.lang.Object
-
- org.codehaus.plexus.components.io.resources.Deferred
-
- All Implemented Interfaces:
ContentSupplier
,NameSupplier
,SizeSupplier
class Deferred extends java.lang.Object implements ContentSupplier, NameSupplier, SizeSupplier
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.apache.commons.io.output.DeferredFileOutputStream
dfos
(package private) PlexusIoResourceCollection
owner
(package private) PlexusIoResource
resource
-
Constructor Summary
Constructors Constructor Description Deferred(PlexusIoResource resource, PlexusIoResourceCollection owner, boolean hasTransformer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
dfos
final org.apache.commons.io.output.DeferredFileOutputStream dfos
-
resource
final PlexusIoResource resource
-
owner
final PlexusIoResourceCollection owner
-
-
Constructor Detail
-
Deferred
public Deferred(PlexusIoResource resource, PlexusIoResourceCollection owner, boolean hasTransformer) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getContents
@Nonnull public java.io.InputStream getContents() throws java.io.IOException
- Specified by:
getContents
in interfaceContentSupplier
- Throws:
java.io.IOException
-
getSize
public long getSize()
- Specified by:
getSize
in interfaceSizeSupplier
-
getName
public java.lang.String getName()
Description copied from interface:NameSupplier
Returns the resources name, which may include path components, like directory names, or something like that. The resources name is expected to be a relative name and the path components must be separated byFile.pathSeparator
- Specified by:
getName
in interfaceNameSupplier
-
asResource
public PlexusIoResource asResource()
-
-