@Deprecated public enum CompressionType extends java.lang.Enum<CompressionType>
Enum Constant and Description |
---|
GZIP
Deprecated.
Indicates the data is compressed with GZIP compression
|
UNCOMPRESSED
Deprecated.
Indicates the data is not compressed
|
Modifier and Type | Method and Description |
---|---|
int |
getDatabaseIntValue()
Deprecated.
Returns the integer value that will be stored in the database to represent the type of data
|
abstract java.io.InputStream |
getReadableStream(java.io.InputStream databaseStream)
Deprecated.
Gets a readable version of the stream from the database to read the blob content
|
static CompressionType |
getTypeFromInt(int databaseValue)
Deprecated.
Returns the compression type based on the value stored in the database
|
abstract java.io.OutputStream |
getWritableStream(java.io.OutputStream databaseStream)
Deprecated.
Gets a writable version of the stream from to database to write the blob content, converting it to the format it will be stored in
|
static CompressionType |
valueOf(java.lang.String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static CompressionType[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompressionType GZIP
public static final CompressionType UNCOMPRESSED
public static CompressionType[] values()
for (CompressionType c : CompressionType.values()) System.out.println(c);
public static CompressionType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract java.io.InputStream getReadableStream(java.io.InputStream databaseStream) throws java.io.IOException
databaseStream
- The stream from the databasejava.io.IOException
- If there is an error wrapping the streampublic abstract java.io.OutputStream getWritableStream(java.io.OutputStream databaseStream) throws java.io.IOException
databaseStream
- The stream from the databasejava.io.IOException
- If there is an error wrapping the streampublic int getDatabaseIntValue()
public static CompressionType getTypeFromInt(int databaseValue)
databaseValue
- The value stored in the database