public class ChunkStreamVersion extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
ChunkStreamVersion.Wrapper<O> |
Modifier and Type | Field and Description |
---|---|
static ChunkStreamVersion |
DEFLATE |
static ChunkStreamVersion |
GZIP |
private int |
id |
private ChunkStreamVersion.Wrapper<InputStream> |
inputStreamWrapper |
private ChunkStreamVersion.Wrapper<OutputStream> |
outputStreamWrapper |
static ChunkStreamVersion |
UNCOMPRESSED |
private static it.unimi.dsi.fastutil.ints.Int2ObjectMap<ChunkStreamVersion> |
VERSIONS |
Modifier | Constructor and Description |
---|---|
private |
ChunkStreamVersion(int id,
ChunkStreamVersion.Wrapper<InputStream> inputStreamWrapper,
ChunkStreamVersion.Wrapper<OutputStream> outputStreamWrapper) |
Modifier and Type | Method and Description |
---|---|
private static ChunkStreamVersion |
add(ChunkStreamVersion version) |
static boolean |
exists(int id) |
static ChunkStreamVersion |
get(int id) |
int |
getId() |
InputStream |
wrap(InputStream inputStream) |
OutputStream |
wrap(OutputStream outputStream) |
private static final it.unimi.dsi.fastutil.ints.Int2ObjectMap<ChunkStreamVersion> VERSIONS
public static final ChunkStreamVersion GZIP
public static final ChunkStreamVersion DEFLATE
public static final ChunkStreamVersion UNCOMPRESSED
private final int id
private final ChunkStreamVersion.Wrapper<InputStream> inputStreamWrapper
private final ChunkStreamVersion.Wrapper<OutputStream> outputStreamWrapper
private ChunkStreamVersion(int id, ChunkStreamVersion.Wrapper<InputStream> inputStreamWrapper, ChunkStreamVersion.Wrapper<OutputStream> outputStreamWrapper)
private static ChunkStreamVersion add(ChunkStreamVersion version)
@Nullable public static ChunkStreamVersion get(int id)
public static boolean exists(int id)
public int getId()
public OutputStream wrap(OutputStream outputStream) throws IOException
IOException
public InputStream wrap(InputStream inputStream) throws IOException
IOException