Package net.sourceforge.plantuml
Class SourceFileReaderAbstract
- java.lang.Object
-
- net.sourceforge.plantuml.SourceFileReaderAbstract
-
- Direct Known Subclasses:
SourceFileReader,SourceFileReaderCopyCat,SourceFileReaderHardFile
public abstract class SourceFileReaderAbstract extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected BlockUmlBuilderbuilderprotected intcptprotected java.io.Filefileprotected FileFormatOptionfileFormatOptionprotected java.io.FileoutputDirectoryprotected java.io.FileoutputFile
-
Constructor Summary
Constructors Constructor Description SourceFileReaderAbstract()
-
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()java.util.List<GeneratedImage>getGeneratedImages()java.util.Set<FileWithSuffix>getIncludedFiles()protected java.io.ReadergetReader(java.lang.String charset)protected abstract SuggestedFilegetSuggestedFile(BlockUml blockUml)booleanhasError()voidsetCheckMetadata(boolean checkMetadata)voidsetFileFormatOption(FileFormatOption fileFormatOption)
-
-
-
Field Detail
-
file
protected java.io.File file
-
outputDirectory
protected java.io.File outputDirectory
-
outputFile
protected java.io.File outputFile
-
builder
protected BlockUmlBuilder builder
-
fileFormatOption
protected FileFormatOption fileFormatOption
-
cpt
protected int cpt
-
-
Method Detail
-
setCheckMetadata
public void setCheckMetadata(boolean checkMetadata)
-
hasError
public boolean hasError()
-
getBlocks
public java.util.List<BlockUml> getBlocks()
-
getReader
protected java.io.Reader getReader(java.lang.String charset) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException- Throws:
java.io.FileNotFoundExceptionjava.io.UnsupportedEncodingException
-
getIncludedFiles
public final java.util.Set<FileWithSuffix> getIncludedFiles()
-
setFileFormatOption
public final void setFileFormatOption(FileFormatOption fileFormatOption)
-
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
- Throws:
java.io.IOException
-
getSuggestedFile
protected abstract SuggestedFile getSuggestedFile(BlockUml blockUml) throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
-
-