Interface HardwoodContext.Builder
- Enclosing interface:
HardwoodContext
Builder for a
HardwoodContext.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the context.metadataSource(MetadataSource source) Installs aMetadataSourcethat supplies the footer of every file a reader opened against the context reads.threads(int threads) Sets the number of platform threads the context uses to decompress and decode pages.
-
Method Details
-
threads
Sets the number of platform threads the context uses to decompress and decode pages. Defaults toRuntime.availableProcessors().- Throws:
IllegalArgumentException- ifthreadsis less than 1
-
metadataSource
Installs aMetadataSourcethat supplies the footer of every file a reader opened against the context reads. Without one, each reader reads the footers itself.- Throws:
NullPointerException- ifsourceisnull
-
build
HardwoodContext build()Builds the context. The caller closes it.
-