Package org.apache.hop.core.compress
Class NoneCompressionProvider
- java.lang.Object
-
- org.apache.hop.core.compress.NoneCompressionProvider
-
- All Implemented Interfaces:
ICompressionProvider
@CompressionPlugin(id="None", name="None", description="None") public class NoneCompressionProvider extends Object implements ICompressionProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNoneCompressionProvider.NoneCompressionInputStreamstatic classNoneCompressionProvider.NoneCompressionOutputStream
-
Constructor Summary
Constructors Constructor Description NoneCompressionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompressionInputStreamcreateInputStream(InputStream in)Creates an input stream that decompresses data (according to the provider's implementation)CompressionOutputStreamcreateOutputStream(OutputStream out)Creates an output stream that compresses data (according to the provider's implementation)StringgetDefaultExtension()Gets the default file extension for this provider.StringgetDescription()Gets the description for the compression provider.StringgetName()Gets the name for the compression provider.booleansupportsInput()Whether this compression provider supports input streamsbooleansupportsOutput()Whether this compression provider supports output streams
-
-
-
Method Detail
-
createInputStream
public CompressionInputStream createInputStream(InputStream in) throws IOException
Description copied from interface:ICompressionProviderCreates an input stream that decompresses data (according to the provider's implementation)- Specified by:
createInputStreamin interfaceICompressionProvider- Parameters:
in- An existing input stream to wrap- Returns:
- a CompressionInputStream object that decompresses incoming data
- Throws:
IOException
-
supportsInput
public boolean supportsInput()
Description copied from interface:ICompressionProviderWhether this compression provider supports input streams- Specified by:
supportsInputin interfaceICompressionProvider- Returns:
- true if the provider supports input streams, false otherwise
-
createOutputStream
public CompressionOutputStream createOutputStream(OutputStream out) throws IOException
Description copied from interface:ICompressionProviderCreates an output stream that compresses data (according to the provider's implementation)- Specified by:
createOutputStreamin interfaceICompressionProvider- Parameters:
out- An existing output stream to wrap- Returns:
- a CompressionOutputStream object that compresses outgoing data
- Throws:
IOException
-
supportsOutput
public boolean supportsOutput()
Description copied from interface:ICompressionProviderWhether this compression provider supports output streams- Specified by:
supportsOutputin interfaceICompressionProvider- Returns:
- true if the provider supports output streams, false otherwise
-
getDescription
public String getDescription()
Gets the description for the compression provider.- Specified by:
getDescriptionin interfaceICompressionProvider- Returns:
- a description of the provider. For core plugins this needs to match what's in the XML file
-
getName
public String getName()
Gets the name for the compression provider.- Specified by:
getNamein interfaceICompressionProvider- Returns:
- the name of the provider. For core plugins this needs to match what's in the XML file
-
getDefaultExtension
public String getDefaultExtension()
Description copied from interface:ICompressionProviderGets the default file extension for this provider. If the streams are wrapped in File streams, this method can be used to determine an appropriate extension to append to the filename so the file will be recognized as an artifact of the compression mechanism (.zip, .bz2, e.g.)- Specified by:
getDefaultExtensionin interfaceICompressionProvider- Returns:
- A String containing the default file extension for this provider
-
-