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.DeferredFileOutputStreamdfos(package private) PlexusIoResourceCollectionowner(package private) PlexusIoResourceresource
-
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 PlexusIoResourceasResource()java.io.InputStreamgetContents()java.lang.StringgetName()Returns the resources name, which may include path components, like directory names, or something like that.longgetSize()
-
-
-
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:
getContentsin interfaceContentSupplier- Throws:
java.io.IOException
-
getSize
public long getSize()
- Specified by:
getSizein interfaceSizeSupplier
-
getName
public java.lang.String getName()
Description copied from interface:NameSupplierReturns 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:
getNamein interfaceNameSupplier
-
asResource
public PlexusIoResource asResource()
-
-