|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.bsd.x2svg.outputConverter.OutputFormat
public class OutputFormat
This class represents an output file plus its type.
Field Summary | |
---|---|
(package private) java.lang.String |
directory
|
(package private) java.lang.String |
fileName
|
(package private) boolean |
noFile
|
(package private) OutputType |
type
|
Constructor Summary | |
---|---|
OutputFormat(OutputType type)
Construct the output format partially. |
|
OutputFormat(java.lang.String fileName)
Construct the output format and tries to guess the desired format by the file name suffix |
|
OutputFormat(java.lang.String fileName,
OutputType type,
boolean isDirectory)
Construct the output format |
Method Summary | |
---|---|
java.lang.String |
getFileName()
Returns the name of the output file |
OutputType |
getType()
Return the file/converter type |
void |
updateFileName(java.lang.String name)
Sets the file name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.lang.String fileName
java.lang.String directory
OutputType type
boolean noFile
Constructor Detail |
---|
public OutputFormat(java.lang.String fileName)
fileName
- the name of the output filepublic OutputFormat(java.lang.String fileName, OutputType type, boolean isDirectory)
fileName
- the name of the output filetype
- the type of the outputisDirectory
- Is the passed fileName a real file or a directory?public OutputFormat(OutputType type)
type
- the type of the outputMethod Detail |
---|
public java.lang.String getFileName()
public OutputType getType()
public void updateFileName(java.lang.String name)
name
- file name
java.lang.IllegalStateException
- if we already have a file present
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |