Class CommonsCompressArchiver
- java.lang.Object
-
- io.freefair.gradle.plugins.compress.internal.CommonsCompressArchiver
-
- All Implemented Interfaces:
Describable
,org.gradle.api.internal.file.archive.compression.CompressedReadableResource
,org.gradle.api.resources.internal.ReadableResourceInternal
,ReadableResource
,Resource
,org.gradle.internal.resource.Resource
- Direct Known Subclasses:
LzmaArchiver
,XzArchiver
public abstract class CommonsCompressArchiver extends Object implements org.gradle.api.internal.file.archive.compression.CompressedReadableResource
- See Also:
AbstractArchiver
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CommonsCompressArchiver(File file)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description File
getBackingFile()
String
getBaseName()
String
getDisplayName()
protected abstract String
getSchemePrefix()
URI
getURI()
CompressorInputStream
read()
protected abstract CompressorInputStream
read(InputStream in)
-
-
-
Constructor Detail
-
CommonsCompressArchiver
protected CommonsCompressArchiver(File file)
-
-
Method Detail
-
getBackingFile
public File getBackingFile()
- Specified by:
getBackingFile
in interfaceorg.gradle.api.resources.internal.ReadableResourceInternal
-
read
public CompressorInputStream read() throws ResourceException
- Specified by:
read
in interfaceReadableResource
- Throws:
ResourceException
-
read
protected abstract CompressorInputStream read(InputStream in) throws IOException
- Throws:
IOException
-
getBaseName
public String getBaseName()
- Specified by:
getBaseName
in interfaceResource
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceDescribable
- Specified by:
getDisplayName
in interfaceResource
- Specified by:
getDisplayName
in interfaceorg.gradle.internal.resource.Resource
-
getSchemePrefix
protected abstract String getSchemePrefix()
-
-