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 Object implements ISourceFileReader
-
-
Field Summary
Fields Modifier and Type Field Description protected BlockUmlBuilder
builder
protected int
cpt
protected File
file
protected FileFormatOption
fileFormatOption
protected File
outputDirectory
protected File
outputFile
-
Constructor Summary
Constructors Constructor Description SourceFileReaderAbstract(File file, FileFormatOption fileFormatOption, Defines defines, List<String> config, String charsetName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected boolean
endsWithSlashOrAntislash(String newName)
protected void
exportWarnOrErrIfWord(SFile f, Diagram system)
List<BlockUml>
getBlocks()
List<GeneratedImage>
getGeneratedImages()
Set<FileWithSuffix>
getIncludedFiles()
protected Reader
getReader(Charset charset)
protected abstract SuggestedFile
getSuggestedFile(BlockUml blockUml)
boolean
hasError()
void
setCheckMetadata(boolean checkMetadata)
void
setFileFormatOption(FileFormatOption fileFormatOption)
Deprecated.protected void
setNoerror(boolean noerror)
-
-
-
Field Detail
-
file
protected File file
-
outputDirectory
protected File outputDirectory
-
outputFile
protected File outputFile
-
builder
protected final BlockUmlBuilder builder
-
fileFormatOption
protected FileFormatOption fileFormatOption
-
cpt
protected int cpt
-
-
Constructor Detail
-
SourceFileReaderAbstract
public SourceFileReaderAbstract(File file, FileFormatOption fileFormatOption, Defines defines, List<String> config, String charsetName) throws IOException
- Throws:
IOException
-
-
Method Detail
-
setCheckMetadata
public void setCheckMetadata(boolean checkMetadata)
- Specified by:
setCheckMetadata
in interfaceISourceFileReader
-
hasError
public boolean hasError()
- Specified by:
hasError
in interfaceISourceFileReader
-
getBlocks
public List<BlockUml> getBlocks()
- Specified by:
getBlocks
in interfaceISourceFileReader
-
getReader
protected Reader getReader(Charset charset) throws FileNotFoundException, UnsupportedEncodingException
-
getIncludedFiles
public final Set<FileWithSuffix> getIncludedFiles()
-
setFileFormatOption
@Deprecated public final void setFileFormatOption(FileFormatOption fileFormatOption)
Deprecated.- Specified by:
setFileFormatOption
in interfaceISourceFileReader
-
endsWithSlashOrAntislash
protected boolean endsWithSlashOrAntislash(String newName)
-
exportWarnOrErrIfWord
protected void exportWarnOrErrIfWord(SFile f, Diagram system) throws FileNotFoundException
- Throws:
FileNotFoundException
-
getGeneratedImages
public final List<GeneratedImage> getGeneratedImages() throws IOException
- Specified by:
getGeneratedImages
in interfaceISourceFileReader
- Throws:
IOException
-
getSuggestedFile
protected abstract SuggestedFile getSuggestedFile(BlockUml blockUml) throws FileNotFoundException
- Throws:
FileNotFoundException
-
setNoerror
protected final void setNoerror(boolean noerror)
-
-