public class DesignDefinition
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FILEENCODING_CSCONFIG_DEFINED
Placeholder for file encoding field if the encoding is to be retrieved from the csconfig.xml
|
Constructor and Description |
---|
DesignDefinition() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDesignKey() |
java.lang.String |
getFileEncoding()
Returns the encoding to use for reading and writing deigns
|
static DesignDefinition |
load(java.io.File file)
Loads syncinfo data from a file.
|
static DesignDefinition |
load(org.apache.commons.vfs2.FileObject file)
Loads syncinfo data from a VFS file object.
|
void |
setDesignKey(java.lang.String designKey) |
void |
setFileEncoding(java.lang.String fileEncoding)
Sets the file encoding for reading and writing files
|
void |
write(java.io.File file)
Writes syncinfo data to a UTF-8-encoded file
|
void |
write(org.apache.commons.vfs2.FileObject file)
Writes syncinfo data to a UTF-8-encoded VFS file object
|
public static final java.lang.String FILEENCODING_CSCONFIG_DEFINED
public static DesignDefinition load(java.io.File file) throws java.io.IOException
file
- The filejava.io.IOException
public static DesignDefinition load(org.apache.commons.vfs2.FileObject file) throws java.io.IOException
file
- The file objectjava.io.IOException
public void write(java.io.File file) throws java.io.IOException
file
- File to write tojava.io.IOException
public void write(org.apache.commons.vfs2.FileObject file) throws java.io.IOException
file
- java.io.IOException
public java.lang.String getDesignKey()
public void setDesignKey(java.lang.String designKey)
designKey
- The designKey to set.public java.lang.String getFileEncoding()
public void setFileEncoding(java.lang.String fileEncoding)