public class ALNCFileConverter extends Object implements AutoCloseable
ALNCArticleBean objects.
| Constructor and Description |
|---|
ALNCFileConverter(InputStream is)
Wrap an
InputStream that represents ALNC JSON, one JSON object per line. |
ALNCFileConverter(Path path) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Stream<ALNCArticleBean> |
stream()
Return a
Stream of ALNCArticleBean objects. |
public ALNCFileConverter(InputStream is)
InputStream that represents ALNC JSON, one JSON object per line.is - an InputStream over properly formed ALNC JSON datapublic ALNCFileConverter(Path path) throws IOException
IOExceptionpublic Stream<ALNCArticleBean> stream() throws IOException
Stream of ALNCArticleBean objects. This stream should be
closed when processing is complete.
Stream of ALNCArticleBean objects.IOException - if there is an issue reading the underlying archive.UncheckedIOException - if there is an issue with the conversion.public void close()
throws IOException
close in interface AutoCloseableIOExceptionCopyright © 2015. All rights reserved.