public class FilePageStashReader extends PageStashReader
Constructor and Description |
---|
FilePageStashReader()
Create an instance that uses the default stash directory.
|
FilePageStashReader(File stashDirectory)
Create an instance that uses the given stash directory.
|
Modifier and Type | Method and Description |
---|---|
ReaderControls |
getReaderControls()
Get the
ReaderControls to be used during unmarshalling. |
File |
getStashDirectory() |
boolean |
isValidStash(File file) |
void |
listStashes(EventList<PageStash> result)
List all stashes currently residing in the holding area.
|
void |
purgeAllStashes()
Purge all stashes from the holding area.
|
void |
setReaderControls(ReaderControls readerControls)
Set the
ReaderControls to be used during unmarshalling. |
listStashes
public FilePageStashReader()
public FilePageStashReader(File stashDirectory)
public File getStashDirectory()
public void listStashes(EventList<PageStash> result)
PageStashReader
listStashes
in class PageStashReader
result
- the event list to populate with the resultspublic boolean isValidStash(File file)
public void purgeAllStashes()
PageStashReader
purgeAllStashes
in class PageStashReader
public ReaderControls getReaderControls()
ReaderControls
to be used during unmarshalling. Whether the
ReaderSettings
contained therein are used or not may depend on the file format and
unmarshaller implementation.public void setReaderControls(ReaderControls readerControls)
ReaderControls
to be used during unmarshalling. Whether the
ReaderSettings
contained therein are used or not may depend on the file format and
unmarshaller implementation.
In order to modify a particular set of ReaderSettings
it is preferable to use
getReaderControls()
.ProcessingControls.getSettings(Class)
instead of
using this method. Instead, this method should only be used to replace all controls with an
already existing set of controls.Copyright © 2024 levigo holding gmbh. All rights reserved.