@NotThreadSafe public final class BackupDocumentReader extends Object
Document
instances to one or more sequential files in a backup directory.Modifier and Type | Field and Description |
---|---|
protected DocumentSequence |
documents |
static String |
DOCUMENTS_EXTENSION |
protected long |
fileCount |
static String |
GZIP_EXTENSION |
protected InputStream |
stream |
Constructor and Description |
---|
BackupDocumentReader(File parentDirectory,
String filenamePrefix,
Problems problems) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this writer, which flushes and closes any currently-open streams.
|
protected void |
close(InputStream stream) |
protected InputStream |
openNextFile() |
Document |
read()
Read the next document from the files.
|
public static final String GZIP_EXTENSION
public static final String DOCUMENTS_EXTENSION
protected InputStream stream
protected DocumentSequence documents
protected long fileCount
public Document read()
protected InputStream openNextFile() throws IOException
IOException
protected void close(InputStream stream)
public void close()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.