Module kala.compress.base
Package kala.compress.archivers
Class ArchiveReaderBuilder<R,B extends ArchiveReaderBuilder<R,B>>
java.lang.Object
kala.compress.archivers.ArchiveReaderBuilder<R,B>
- Direct Known Subclasses:
SevenZArchiveReader.Builder,ZipArchiveReader.Builder
- Since:
- 1.27.1-0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Charsetprivate static final Charsetprotected static final OpenOption[]protected OpenOption[]protected Stringprotected Pathprotected SeekableByteChannel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final BasThis()Returns this instance typed as the proper subclass type.protected Pathabstract Rget()Gets the archive reader.final BsetByteArray(byte[] origin) Sets a new origin.final BsetCharset(String charset) Sets the Charset.final BsetCharset(Charset charset) Sets the Charset.final BSets a new origin.final BSets a new origin.final BsetOpenOptions(OpenOption... openOptions) Sets the OpenOption[].final BsetOriginDescription(String description) Set the origin description.final BSets a new origin.final BSets a new origin.final BSets a new origin.final BSets a new origin.
-
Field Details
-
DEFAULT_CHARSET
-
DEFAULT_OPEN_OPTIONS
-
openOptions
-
charset
-
originDescription
-
seekableByteChannel
-
path
-
-
Constructor Details
-
ArchiveReaderBuilder
public ArchiveReaderBuilder()
-
-
Method Details
-
checkPath
-
setCharset
Sets the Charset.- Parameters:
charset- the Charset, null resets to the default.- Returns:
thisinstance.
-
setCharset
Sets the Charset.- Parameters:
charset- the Charset, null resets to the default.- Returns:
thisinstance.
-
setOpenOptions
Sets the OpenOption[].- Parameters:
openOptions- the OpenOption[] name, null resets to the default.- Returns:
thisinstance.
-
setOriginDescription
Set the origin description.- Parameters:
description- the origin description, null resets to the default..- Returns:
thisinstance.
-
setSeekableByteChannel
Sets a new origin.- Parameters:
origin- the new origin.- Returns:
thisinstance.
-
setByteArray
Sets a new origin.- Parameters:
origin- the new origin.- Returns:
thisinstance.
-
setFile
Sets a new origin.- Parameters:
origin- the new origin.- Returns:
thisinstance.
-
setFile
Sets a new origin.- Parameters:
origin- the new origin.- Returns:
thisinstance.
-
setPath
Sets a new origin.- Parameters:
origin- the new origin.- Returns:
thisinstance.
-
setPath
Sets a new origin.- Parameters:
origin- the new origin.- Returns:
thisinstance.
-
setURI
Sets a new origin.- Parameters:
origin- the new origin.- Returns:
thisinstance.
-
get
Gets the archive reader.- Returns:
- a result.
- Throws:
IOException- if an I/O error occurs.
-
asThis
Returns this instance typed as the proper subclass type.- Returns:
- this instance typed as the proper subclass type.
-