Constructor and Description |
---|
SmilesSegmenter() |
Modifier and Type | Method and Description |
---|---|
CloseableStringSink |
composer(Appendable target,
Closeable fwd)
Create composer.
|
<T extends Closeable & Appendable> |
composer(T target)
Convenience wrapper for
Segmenter.composer(java.lang.Appendable, java.io.Closeable) . |
String |
getCxnFormatName()
Format name used by
MolImporter and MolExporter . |
String |
getDescription()
Short human readable description.
|
<T extends Closeable & Appendable> |
optionalComposer(Optional<T> target)
Convenience wrapper for
Segmenter.composer(java.lang.Appendable, java.io.Closeable) . |
Iterator<String> |
segments(Iterator<String> lines)
Enumerate multi line segments of the input structure.
|
Function<Iterator<String>,Iterator<String>> |
segmentsFunction()
Function to transform input lines to segments.
|
String |
toString() |
public String getCxnFormatName()
Segmenter
MolImporter
and MolExporter
.getCxnFormatName
in interface Segmenter
public String getDescription()
Segmenter
getDescription
in interface Segmenter
public Iterator<String> segments(Iterator<String> lines)
Segmenter
s.trim() == s
).public Function<Iterator<String>,Iterator<String>> segmentsFunction()
Segmenter
segmentsFunction
in interface Segmenter
public CloseableStringSink composer(Appendable target, Closeable fwd)
Segmenter
CloseableSink.close()
is required to be called.public <T extends Closeable & Appendable> CloseableStringSink composer(T target)
Segmenter
Segmenter.composer(java.lang.Appendable, java.io.Closeable)
.
This method typically used when a resource bound output channel is set up.public <T extends Closeable & Appendable> Optional<CloseableStringSink> optionalComposer(Optional<T> target)
Segmenter
Segmenter.composer(java.lang.Appendable, java.io.Closeable)
.
This method typically used when an optional output channel is set up.optionalComposer
in interface Segmenter
T
- Closeable target typetarget
- Optional closeable target