Package net.sourceforge.plantuml
Class SourceFileReaderAbstract
- java.lang.Object
-
- net.sourceforge.plantuml.SourceFileReaderAbstract
-
- All Implemented Interfaces:
ISourceFileReader
- Direct Known Subclasses:
SourceFileReader,SourceFileReaderCopyCat,SourceFileReaderHardFile
public abstract class SourceFileReaderAbstract extends java.lang.Object implements ISourceFileReader
-
-
Constructor Summary
Constructors Constructor Description SourceFileReaderAbstract(java.io.File file, FileFormatOption fileFormatOption, Defines defines, java.util.List<java.lang.String> config, java.lang.String charsetName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleanendsWithSlashOrAntislash(java.lang.String newName)protected voidexportWarnOrErrIfWord(SFile f, Diagram system)java.util.List<BlockUml>getBlocks()protected FileFormatOptiongetFileFormatOption()protected java.lang.StringgetFileName()java.util.List<GeneratedImage>getGeneratedImages()java.util.Set<FileWithSuffix>getIncludedFiles()protected java.io.ReadergetReader(java.nio.charset.Charset charset)protected SuggestedFilegetSuggestedFile(java.io.File outputDirectory, java.lang.String newName)protected abstract SuggestedFilegetSuggestedFile(BlockUml blockUml)booleanhasError()voidsetCheckMetadata(boolean checkMetadata)ISourceFileReadersetFileFormatOption(FileFormatOption fileFormatOption)protected voidsetNoerror(boolean noerror)
-
-
-
Constructor Detail
-
SourceFileReaderAbstract
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- Throws:
java.io.IOException
-
-
Method Detail
-
getSuggestedFile
protected final SuggestedFile getSuggestedFile(java.io.File outputDirectory, java.lang.String newName)
-
getFileFormatOption
protected final FileFormatOption getFileFormatOption()
-
setCheckMetadata
public void setCheckMetadata(boolean checkMetadata)
- Specified by:
setCheckMetadatain interfaceISourceFileReader
-
hasError
public boolean hasError()
- Specified by:
hasErrorin interfaceISourceFileReader
-
getBlocks
public java.util.List<BlockUml> getBlocks()
- Specified by:
getBlocksin interfaceISourceFileReader
-
getReader
protected java.io.Reader getReader(java.nio.charset.Charset charset) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException- Throws:
java.io.FileNotFoundExceptionjava.io.UnsupportedEncodingException
-
getIncludedFiles
public final java.util.Set<FileWithSuffix> getIncludedFiles() throws java.io.IOException
- Throws:
java.io.IOException
-
setFileFormatOption
public final ISourceFileReader setFileFormatOption(FileFormatOption fileFormatOption)
- Specified by:
setFileFormatOptionin interfaceISourceFileReader
-
endsWithSlashOrAntislash
protected boolean endsWithSlashOrAntislash(java.lang.String newName)
-
exportWarnOrErrIfWord
protected void exportWarnOrErrIfWord(SFile f, Diagram system) throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
-
getGeneratedImages
public final java.util.List<GeneratedImage> getGeneratedImages() throws java.io.IOException
- Specified by:
getGeneratedImagesin interfaceISourceFileReader- Throws:
java.io.IOException
-
getSuggestedFile
protected abstract SuggestedFile getSuggestedFile(BlockUml blockUml) throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
-
setNoerror
protected final void setNoerror(boolean noerror)
-
getFileName
protected final java.lang.String getFileName()
-
-