Package org.pentaho.di.core.compress
Class NoneCompressionProvider
java.lang.Object
org.pentaho.di.core.compress.NoneCompressionProvider
- All Implemented Interfaces:
CompressionProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates an input stream that decompresses data (according to the provider's implementation)Creates an output stream that compresses data (according to the provider's implementation)Gets the default file extension for this provider.Gets the description for the compression provider.getName()Gets the name for the compression provider.booleanWhether this compression provider supports input streamsbooleanWhether this compression provider supports output streams
-
Constructor Details
-
NoneCompressionProvider
public NoneCompressionProvider()
-
-
Method Details
-
createInputStream
Description copied from interface:CompressionProviderCreates an input stream that decompresses data (according to the provider's implementation)- Specified by:
createInputStreamin interfaceCompressionProvider- 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:CompressionProviderWhether this compression provider supports input streams- Specified by:
supportsInputin interfaceCompressionProvider- Returns:
- true if the provider supports input streams, false otherwise
-
createOutputStream
Description copied from interface:CompressionProviderCreates an output stream that compresses data (according to the provider's implementation)- Specified by:
createOutputStreamin interfaceCompressionProvider- 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:CompressionProviderWhether this compression provider supports output streams- Specified by:
supportsOutputin interfaceCompressionProvider- Returns:
- true if the provider supports output streams, false otherwise
-
getDescription
Gets the description for the compression provider.- Specified by:
getDescriptionin interfaceCompressionProvider- Returns:
- a description of the provider. For core plugins this needs to match what's in the XML file
-
getName
Gets the name for the compression provider.- Specified by:
getNamein interfaceCompressionProvider- Returns:
- the name of the provider. For core plugins this needs to match what's in the XML file
-
getDefaultExtension
Description copied from interface:CompressionProviderGets 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 interfaceCompressionProvider- Returns:
- A String containing the default file extension for this provider
-