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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BlockUmlBuilder
protected int
protected java.io.File
protected FileFormatOption
protected java.io.File
protected java.io.File
-
Constructor Summary
ConstructorsConstructorDescriptionSourceFileReaderAbstract
(java.io.File file, FileFormatOption fileFormatOption, Defines defines, java.util.List<java.lang.String> config, java.lang.String charsetName) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
endsWithSlashOrAntislash
(java.lang.String newName) protected void
exportWarnOrErrIfWord
(SFile f, Diagram system) java.util.List<BlockUml>
final java.util.List<GeneratedImage>
final java.util.Set<FileWithSuffix>
protected java.io.Reader
getReader
(java.nio.charset.Charset charset) protected abstract SuggestedFile
getSuggestedFile
(BlockUml blockUml) boolean
hasError()
void
setCheckMetadata
(boolean checkMetadata) final void
setFileFormatOption
(FileFormatOption fileFormatOption) Deprecated.protected final void
setNoerror
(boolean noerror) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
file
protected java.io.File file -
outputDirectory
protected java.io.File outputDirectory -
outputFile
protected java.io.File outputFile -
builder
-
fileFormatOption
-
cpt
protected int cpt
-
-
Constructor Details
-
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 Details
-
setCheckMetadata
public void setCheckMetadata(boolean checkMetadata) - Specified by:
setCheckMetadata
in interfaceISourceFileReader
-
hasError
public boolean hasError()- Specified by:
hasError
in interfaceISourceFileReader
-
getBlocks
- Specified by:
getBlocks
in interfaceISourceFileReader
-
getReader
protected java.io.Reader getReader(java.nio.charset.Charset charset) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException - Throws:
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
-
getIncludedFiles
-
setFileFormatOption
Deprecated.- Specified by:
setFileFormatOption
in interfaceISourceFileReader
-
endsWithSlashOrAntislash
protected boolean endsWithSlashOrAntislash(java.lang.String newName) -
exportWarnOrErrIfWord
- Throws:
java.io.FileNotFoundException
-
getGeneratedImages
- Specified by:
getGeneratedImages
in 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)
-