Class AbstractUniVocityDataFormat<F extends com.univocity.parsers.common.Format,CWS extends com.univocity.parsers.common.CommonWriterSettings<F>,W extends com.univocity.parsers.common.AbstractWriter<CWS>,CPS extends com.univocity.parsers.common.CommonParserSettings<F>,P extends com.univocity.parsers.common.AbstractParser<CPS>,DF extends AbstractUniVocityDataFormat<F,CWS,W,CPS,P,DF>>
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.dataformat.univocity.AbstractUniVocityDataFormat<F,CWS,W,CPS,P,DF>
- Type Parameters:
F- uniVocity format classCWS- uniVocity writer settings classW- uniVocity writer classCPS- uniVocity parser settings classP- uniVocity parser classDF- the data format class (for providing a fluent API)
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.DataFormat,org.apache.camel.spi.DataFormatName,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
- Direct Known Subclasses:
UniVocityCsvDataFormat,UniVocityFixedDataFormat,UniVocityTsvDataFormat
@Deprecated(since="4.8.0")
public abstract class AbstractUniVocityDataFormat<F extends com.univocity.parsers.common.Format,CWS extends com.univocity.parsers.common.CommonWriterSettings<F>,W extends com.univocity.parsers.common.AbstractWriter<CWS>,CPS extends com.univocity.parsers.common.CommonParserSettings<F>,P extends com.univocity.parsers.common.AbstractParser<CPS>,DF extends AbstractUniVocityDataFormat<F,CWS,W,CPS,P,DF>>
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.spi.DataFormat, org.apache.camel.spi.DataFormatName
Deprecated.
This abstract class contains all the common parts for all the uniVocity parsers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanDeprecated.protected CharacterDeprecated.protected StringDeprecated.protected BooleanDeprecated.protected String[]Deprecated.protected booleanDeprecated.protected BooleanDeprecated.protected BooleanDeprecated.protected booleanDeprecated.protected StringDeprecated.protected CharacterDeprecated.protected StringDeprecated.protected IntegerDeprecated.protected BooleanDeprecated.Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureFormat(F format) Deprecated.Configures the format.protected voidconfigureParserSettings(CPS settings) Deprecated.Configure the parser settings.protected voidconfigureWriterSettings(CWS settings) Deprecated.Configures the writer settings.protected abstract PcreateParser(CPS settings) Deprecated.Creates a new instance of the uniVocity parser.protected abstract CPSDeprecated.Creates a new instance of the parser settings.protected abstract WcreateWriter(Writer writer, CWS settings) Deprecated.Creates a new instance of the uniVocity writer.protected abstract CWSDeprecated.Creates a new instance of the writer settings.protected voiddoStart()Deprecated.protected voiddoStop()Deprecated.Deprecated.Gets the comment symbol.Deprecated.Gets the String representation of an empty value.Deprecated.Gets whether or not the header extraction is enabled.String[]Deprecated.Gets the headers.Deprecated.Gets whether or not leading whitespaces should be ignored.Deprecated.Gets whether or not trailing whitespaces should be ignored.Deprecated.Gets the line separator.Deprecated.Gets the normalized line separator.Deprecated.Gets the String representation of a null value.Deprecated.Gets the number of records to read.Deprecated.Gets whether or not empty lines should be ignored.booleanisAsMap()Deprecated.Gets whether or not the unmarshalling should produces maps instead of lists.booleanDeprecated.Gets whether or not headers are disabled.booleanDeprecated.Gets whether or not the unmarshalling should read lines lazily.voidmarshal(org.apache.camel.Exchange exchange, Object body, OutputStream stream) Deprecated.setAsMap(boolean asMap) Deprecated.Sets whether or not the unmarshalling should produces maps instead of lists.setComment(Character comment) Deprecated.Gets the comment symbol.setEmptyValue(String emptyValue) Deprecated.Sets the String representation of an empty value.setHeaderExtractionEnabled(Boolean headerExtractionEnabled) Deprecated.Sets whether or not the header extraction is enabled.setHeaders(String[] headers) Deprecated.Sets the headers.setHeadersDisabled(boolean headersDisabled) Deprecated.Sets whether or not headers are disabled.setIgnoreLeadingWhitespaces(Boolean ignoreLeadingWhitespaces) Deprecated.Sets whether or not leading whitespaces should be ignored.setIgnoreTrailingWhitespaces(Boolean ignoreTrailingWhitespaces) Deprecated.Sets whether or not trailing whitespaces should be ignored.setLazyLoad(boolean lazyLoad) Deprecated.Sets whether or not the unmarshalling should read lines lazily.setLineSeparator(String lineSeparator) Deprecated.Sets the line separator.setNormalizedLineSeparator(Character normalizedLineSeparator) Deprecated.Sets the normalized line separator.setNullValue(String nullValue) Deprecated.Sets the String representation of a null value.setNumberOfRecordsToRead(Integer numberOfRecordsToRead) Deprecated.Sets the number of records to read.setSkipEmptyLines(Boolean skipEmptyLines) Deprecated.Sets whether or not empty lines should be ignored.unmarshal(org.apache.camel.Exchange exchange, InputStream stream) Deprecated.Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.spi.DataFormat
unmarshalMethods inherited from interface org.apache.camel.spi.DataFormatName
getDataFormatNameMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Field Details
-
nullValue
Deprecated. -
skipEmptyLines
Deprecated. -
ignoreTrailingWhitespaces
Deprecated. -
ignoreLeadingWhitespaces
Deprecated. -
headersDisabled
protected boolean headersDisabledDeprecated. -
headers
Deprecated. -
headerExtractionEnabled
Deprecated. -
numberOfRecordsToRead
Deprecated. -
emptyValue
Deprecated. -
lineSeparator
Deprecated. -
normalizedLineSeparator
Deprecated. -
comment
Deprecated. -
lazyLoad
protected boolean lazyLoadDeprecated. -
asMap
protected boolean asMapDeprecated.
-
-
Constructor Details
-
AbstractUniVocityDataFormat
public AbstractUniVocityDataFormat()Deprecated.
-
-
Method Details
-
marshal
public void marshal(org.apache.camel.Exchange exchange, Object body, OutputStream stream) throws Exception Deprecated.- Specified by:
marshalin interfaceorg.apache.camel.spi.DataFormat- Throws:
Exception
-
unmarshal
Deprecated.- Specified by:
unmarshalin interfaceorg.apache.camel.spi.DataFormat- Throws:
Exception
-
getNullValue
Deprecated.Gets the String representation of a null value. Ifnullthen the default settings value is used.- Returns:
- the String representation of a null value
- See Also:
-
setNullValue
Deprecated.Sets the String representation of a null value. Ifnullthen the default settings value is used.- Parameters:
nullValue- the String representation of a null value- Returns:
- current data format instance, fluent API
- See Also:
-
getSkipEmptyLines
Deprecated.Gets whether or not empty lines should be ignored. Ifnullthen the default settings value is used.- Returns:
- whether or not empty lines should be ignored
- See Also:
-
setSkipEmptyLines
Deprecated.Sets whether or not empty lines should be ignored. Ifnullthen the default settings value is used.- Parameters:
skipEmptyLines- whether or not empty lines should be ignored- Returns:
- current data format instance, fluent API
- See Also:
-
getIgnoreTrailingWhitespaces
Deprecated.Gets whether or not trailing whitespaces should be ignored. Ifnullthen the default settings value is used.- Returns:
- whether or not trailing whitespaces should be ignored
- See Also:
-
setIgnoreTrailingWhitespaces
Deprecated.Sets whether or not trailing whitespaces should be ignored. Ifnullthen the default settings value is used.- Parameters:
ignoreTrailingWhitespaces- whether or not trailing whitespaces should be ignored- Returns:
- current data format instance, fluent API
- See Also:
-
getIgnoreLeadingWhitespaces
Deprecated.Gets whether or not leading whitespaces should be ignored. Ifnullthen the default settings value is used.- Returns:
- whether or not leading whitespaces should be ignored
- See Also:
-
setIgnoreLeadingWhitespaces
Deprecated.Sets whether or not leading whitespaces should be ignored. Ifnullthen the default settings value is used.- Parameters:
ignoreLeadingWhitespaces- whether or not leading whitespaces should be ignored- Returns:
- current data format instance, fluent API
- See Also:
-
isHeadersDisabled
public boolean isHeadersDisabled()Deprecated.Gets whether or not headers are disabled. Iftruethen it passesnulltoCommonSettings.setHeaders(String...)in order to disabled them.- Returns:
- whether or not headers are disabled
- See Also:
-
setHeadersDisabled
Deprecated.Sets whether or not headers are disabled. Iftruethen it passesnulltoCommonSettings.setHeaders(String...)in order to disabled them.- Parameters:
headersDisabled- whether or not headers are disabled- Returns:
- current data format instance, fluent API
- See Also:
-
getHeaders
Deprecated.Gets the headers. Ifnullthen the default settings value is used.- Returns:
- the headers
- See Also:
-
setHeaders
Deprecated.Sets the headers. Ifnullthen the default settings value is used.- Parameters:
headers- the headers- Returns:
- current data format instance, fluent API
- See Also:
-
getHeaderExtractionEnabled
Deprecated.Gets whether or not the header extraction is enabled. Ifnullthen the default settings value is used.- Returns:
- whether or not the header extraction is enabled
- See Also:
-
setHeaderExtractionEnabled
Deprecated.Sets whether or not the header extraction is enabled. Ifnullthen the default settings value is used.- Parameters:
headerExtractionEnabled- whether or not the header extraction is enabled- Returns:
- current data format instance, fluent API
- See Also:
-
getNumberOfRecordsToRead
Deprecated.Gets the number of records to read. Ifnullthen the default settings value is used.- Returns:
- the number of records to read
- See Also:
-
setNumberOfRecordsToRead
Deprecated.Sets the number of records to read. Ifnullthen the default settings value is used.- Parameters:
numberOfRecordsToRead- the number of records to read- Returns:
- current data format instance, fluent API
- See Also:
-
getEmptyValue
Deprecated.Gets the String representation of an empty value. Ifnullthen the default settings value is used.- Returns:
- the String representation of an empty value
- See Also:
-
setEmptyValue
Deprecated.Sets the String representation of an empty value. Ifnullthen the default settings value is used.- Parameters:
emptyValue- the String representation of an empty value- Returns:
- current data format instance, fluent API
- See Also:
-
getLineSeparator
Deprecated.Gets the line separator. Ifnullthen the default format value is used.- Returns:
- the line separator
- See Also:
-
setLineSeparator
Deprecated.Sets the line separator. Ifnullthen the default format value is used.- Parameters:
lineSeparator- the line separator- Returns:
- current data format instance, fluent API
- See Also:
-
getNormalizedLineSeparator
Deprecated.Gets the normalized line separator. Ifnullthen the default format value is used.- Returns:
- the normalized line separator
- See Also:
-
setNormalizedLineSeparator
Deprecated.Sets the normalized line separator. Ifnullthen the default format value is used.- Parameters:
normalizedLineSeparator- the normalized line separator- Returns:
- current data format instance, fluent API
- See Also:
-
getComment
Deprecated.Gets the comment symbol. Ifnullthen the default format value is used.- Returns:
- the comment symbol
- See Also:
-
setComment
Deprecated.Gets the comment symbol. Ifnullthen the default format value is used.- Parameters:
comment- the comment symbol- Returns:
- current data format instance, fluent API
- See Also:
-
isLazyLoad
public boolean isLazyLoad()Deprecated.Gets whether or not the unmarshalling should read lines lazily.- Returns:
- whether or not the unmarshalling should read lines lazily
-
setLazyLoad
Deprecated.Sets whether or not the unmarshalling should read lines lazily.- Parameters:
lazyLoad- whether or not the unmarshalling should read lines lazily- Returns:
- current data format instance, fluent API
-
isAsMap
public boolean isAsMap()Deprecated.Gets whether or not the unmarshalling should produces maps instead of lists.- Returns:
- whether or not the unmarshalling should produces maps instead of lists
-
setAsMap
Deprecated.Sets whether or not the unmarshalling should produces maps instead of lists.- Parameters:
asMap- whether or not the unmarshalling should produces maps instead of lists- Returns:
- current data format instance, fluent API
-
createWriterSettings
Deprecated.Creates a new instance of the writer settings.- Returns:
- New instance of the writer settings
-
configureWriterSettings
Deprecated.Configures the writer settings.- Parameters:
settings- Writer settings to configure
-
createWriter
Deprecated.Creates a new instance of the uniVocity writer.- Parameters:
writer- Output writer to usesettings- Writer settings to use- Returns:
- New uinstance of the uniVocity writer
-
createParserSettings
Deprecated.Creates a new instance of the parser settings.- Returns:
- New instance of the parser settings
-
configureParserSettings
Deprecated.Configure the parser settings.- Parameters:
settings- Parser settings to configure
-
createParser
Deprecated.Creates a new instance of the uniVocity parser.- Parameters:
settings- Parser settings to use- Returns:
- New instance of the uniVocity parser
-
configureFormat
Deprecated.Configures the format.- Parameters:
format- format to configure
-
doStart
Deprecated.- Overrides:
doStartin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doStop
Deprecated.- Overrides:
doStopin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-