public interface DataFormatReader
Spin object from its serialized representation.| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(Reader reader,
int readLimit)
Returns true if this reader estimates to be able to consume the input data.
|
Object |
readInput(Reader reader)
Read (or parse) a reader into this data format's input structure.
|
boolean canRead(Reader reader, int readLimit)
readLimit
bytes from the supplied reader.reader - reader that can be read from to detect a data formatreadLimit - positive number that poses a restriction on how many characters
an implementation may read. Reading beyond this limit may lead to incomplete
input when the method readInput(Reader) is invoked.Object readInput(Reader reader)
reader - a Reader providing the data sourceSpinDataFormatException - in case the reader cannot read the inputCopyright © 2014–2020 Camunda Services GmbH. All rights reserved.