public abstract class SourceFileReaderAbstract extends java.lang.Object implements ISourceFileReader
| Constructor and Description |
|---|
SourceFileReaderAbstract(java.io.File file,
FileFormatOption fileFormatOption,
Defines defines,
java.util.List<java.lang.String> config,
java.lang.String charsetName) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
endsWithSlashOrAntislash(java.lang.String newName) |
protected void |
exportWarnOrErrIfWord(SFile f,
Diagram system) |
java.util.List<BlockUml> |
getBlocks() |
protected FileFormatOption |
getFileFormatOption() |
protected java.lang.String |
getFileName() |
java.util.List<GeneratedImage> |
getGeneratedImages() |
java.util.Set<FileWithSuffix> |
getIncludedFiles() |
protected java.io.Reader |
getReader(java.nio.charset.Charset charset) |
protected abstract SuggestedFile |
getSuggestedFile(BlockUml blockUml) |
protected SuggestedFile |
getSuggestedFile(java.io.File outputDirectory,
java.lang.String newName) |
boolean |
hasError() |
void |
setCheckMetadata(boolean checkMetadata) |
ISourceFileReader |
setFileFormatOption(FileFormatOption fileFormatOption) |
protected void |
setNoerror(boolean noerror) |
public SourceFileReaderAbstract(java.io.File file,
FileFormatOption fileFormatOption,
Defines defines,
java.util.List<java.lang.String> config,
java.lang.String charsetName)
throws java.io.IOException
java.io.IOExceptionprotected final SuggestedFile getSuggestedFile(java.io.File outputDirectory, java.lang.String newName)
protected final FileFormatOption getFileFormatOption()
public void setCheckMetadata(boolean checkMetadata)
setCheckMetadata in interface ISourceFileReaderpublic boolean hasError()
hasError in interface ISourceFileReaderpublic java.util.List<BlockUml> getBlocks()
getBlocks in interface ISourceFileReaderprotected java.io.Reader getReader(java.nio.charset.Charset charset)
throws java.io.FileNotFoundException,
java.io.UnsupportedEncodingException
java.io.FileNotFoundExceptionjava.io.UnsupportedEncodingExceptionpublic final java.util.Set<FileWithSuffix> getIncludedFiles() throws java.io.IOException
java.io.IOExceptionpublic final ISourceFileReader setFileFormatOption(FileFormatOption fileFormatOption)
setFileFormatOption in interface ISourceFileReaderprotected boolean endsWithSlashOrAntislash(java.lang.String newName)
protected void exportWarnOrErrIfWord(SFile f, Diagram system) throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic final java.util.List<GeneratedImage> getGeneratedImages() throws java.io.IOException
getGeneratedImages in interface ISourceFileReaderjava.io.IOExceptionprotected abstract SuggestedFile getSuggestedFile(BlockUml blockUml) throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionprotected final void setNoerror(boolean noerror)
protected final java.lang.String getFileName()