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.IOException
protected final SuggestedFile getSuggestedFile(java.io.File outputDirectory, java.lang.String newName)
protected final FileFormatOption getFileFormatOption()
public void setCheckMetadata(boolean checkMetadata)
setCheckMetadata
in interface ISourceFileReader
public boolean hasError()
hasError
in interface ISourceFileReader
public java.util.List<BlockUml> getBlocks()
getBlocks
in interface ISourceFileReader
protected java.io.Reader getReader(java.nio.charset.Charset charset) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
public final java.util.Set<FileWithSuffix> getIncludedFiles() throws java.io.IOException
java.io.IOException
public final ISourceFileReader setFileFormatOption(FileFormatOption fileFormatOption)
setFileFormatOption
in interface ISourceFileReader
protected boolean endsWithSlashOrAntislash(java.lang.String newName)
protected void exportWarnOrErrIfWord(SFile f, Diagram system) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public final java.util.List<GeneratedImage> getGeneratedImages() throws java.io.IOException
getGeneratedImages
in interface ISourceFileReader
java.io.IOException
protected abstract SuggestedFile getSuggestedFile(BlockUml blockUml) throws java.io.FileNotFoundException
java.io.FileNotFoundException
protected final void setNoerror(boolean noerror)
protected final java.lang.String getFileName()