public static class TextHandler.Builder
extends java.lang.Object
Constructor and Description |
---|
TextHandler.Builder(java.io.File input,
java.io.File output)
Create a new TextParser builder
|
Modifier and Type | Method and Description |
---|---|
TextHandler.Builder |
author(java.lang.String value)
Sets the author for publications created using TextHandlers created with this builder.
|
TextHandler |
build()
Builds a TextParser using the settings of this Builder
|
TextHandler.Builder |
converterId(java.lang.String value)
Sets the converter identifier to be used when creating a TextHandler.
|
TextHandler.Builder |
date(java.util.Date value)
Sets the date for publications created using TextHandlers created with this builder.
|
TextHandler.Builder |
duplex(boolean value)
Sets the duplex property for publications created using TextHandlers created with this builder.
|
TextHandler.Builder |
identifier(java.lang.String value)
Sets the identifier for publications created using TextHandlers created with this builder.
|
TextHandler.Builder |
language(java.lang.String value)
Sets the language for publications created using TextHandlers created with this builder.
|
TextHandler.Builder |
title(java.lang.String value)
Sets the title for publications created using TextHandlers created with this builder.
|
public TextHandler.Builder(java.io.File input, java.io.File output)
input
- output
- public TextHandler.Builder title(java.lang.String value)
value
- the titlepublic TextHandler.Builder author(java.lang.String value)
value
- the authorpublic TextHandler.Builder language(java.lang.String value)
value
- the languagepublic TextHandler.Builder identifier(java.lang.String value)
value
- the identifierpublic TextHandler.Builder converterId(java.lang.String value)
value
- the identifier for the converterpublic TextHandler.Builder duplex(boolean value)
value
- the duplex valuepublic TextHandler.Builder date(java.util.Date value)
value
- the date to usepublic TextHandler build() throws java.io.IOException, InputDetectionException
java.io.UnsupportedEncodingException
java.io.IOException
InputDetectionException