public class DmdlSourceDirectory extends Object implements DmdlSourceRepository
DmdlSourceRepository.Cursor
Constructor and Description |
---|
DmdlSourceDirectory(File directory,
Charset encoding,
Pattern inclusionPattern,
Pattern exclusionPattern)
Creates and returns a new instance.
|
Modifier and Type | Method and Description |
---|---|
DmdlSourceRepository.Cursor |
createCursor()
Creates and returns a new cursor which can traverse in this repository.
|
public DmdlSourceDirectory(File directory, Charset encoding, Pattern inclusionPattern, Pattern exclusionPattern)
directory
- the root source directoryencoding
- the charset of each source fileinclusionPattern
- the inclusion file name pattern,
which filters files if not matchedexclusionPattern
- the exclusion file name pattern,
which filters files if matchedIllegalArgumentException
- if some parameters were null
public DmdlSourceRepository.Cursor createCursor() throws IOException
DmdlSourceRepository
createCursor
in interface DmdlSourceRepository
IOException
- if failed to create a cursorCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.