|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.util.io.Properties | +--com.klg.jclass.util.io.OutputProperties | +--com.klg.jclass.util.io.OutputDataProperties
Encapsulate the properties that may be needed to save a data file
Field Summary | |
static int |
DATA_FILE_TEXT
|
static int |
DATA_FILE_XML
|
static String[] |
dataSave_i18n_strings
|
static String[] |
dataSave_strings
|
static int[] |
dataSave_values
|
static int |
EMBED_DATA
|
protected String |
fileCharset
|
static int |
NO_DATA
|
Fields inherited from class com.klg.jclass.util.io.OutputProperties |
fileAccess, outputFileName, propertyName, saveType |
Fields inherited from class com.klg.jclass.util.io.Properties |
ABSOLUTE, CHARSET_ASCII, CHARSET_ISO, CHARSET_UTF_8, charsets, DEFAULT_ACCESS, DEFAULT_CHARSET_NAME, fileAccess_i18n_strings, fileAccess_strings, fileAccess_values, ignoreExternalResourceExceptions, RELATIVE_URL, RESOLVING_CLASS, SERVLET, URL |
Constructor Summary | |
OutputDataProperties()
Default constructor. |
|
OutputDataProperties(String outputFileName,
String propertyName,
String saveType,
int fileAccess)
Constructor which specifies output fileName, propertyName, saveType, and fileAccess |
Method Summary | |
String |
getFileCharset()
Gets the name of the charset to use when reading data |
int |
getSaveTypeAsEnum()
Return the save type as an enum. |
static int |
getSaveTypeEnumFromString(String accessString,
boolean useI18n)
Get the file access enum from its string representation. |
static String |
getSaveTypeStringFromEnum(int accessValue,
boolean useI18n)
Get the file access string representation from its enum value. |
void |
setFileCharset(String fileCharset)
Sets the name of the charset to use when reading data |
void |
setSaveType(int saveEnum)
Set the type of file to save as an enum. |
void |
setSaveType(String saveType)
Sets the type of file to save as a string. |
Methods inherited from class com.klg.jclass.util.io.OutputProperties |
getFileAccess, getOutputFileName, getPropertyName, getSaveType, setFileAccess, setOutputFileName, setPropertyName |
Methods inherited from class com.klg.jclass.util.io.Properties |
clone, getDefaultAccess, getFileAccessEnumFromString, getFileAccessStringFromEnum, ignoreExternalResourceExceptions, setIgnoreExternalResourceExceptions |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NO_DATA
public static final int EMBED_DATA
public static final int DATA_FILE_TEXT
public static final int DATA_FILE_XML
public static final int[] dataSave_values
public static final String[] dataSave_strings
public static final String[] dataSave_i18n_strings
protected String fileCharset
Constructor Detail |
public OutputDataProperties()
public OutputDataProperties(String outputFileName, String propertyName, String saveType, int fileAccess)
outputFileName
- Name of actual output data file to write to (if
null, no data is written out)propertyName
- Name to write to the propertysaveType
- The type of file to savefileAccess
- Type of access to file. Must be one of
Properties.DEFAULT_ACCESS
,
Properties.ABSOLUTE
,
Properties.RESOLVING_CLASS
,
Properties.URL
,
Properties.RELATIVE_URL
,
Properties.SERVLET
Method Detail |
public String getFileCharset()
public void setFileCharset(String fileCharset)
fileCharset
- The name of a supported charsetpublic void setSaveType(String saveType)
setSaveType
in class OutputProperties
saveType
- The new way to save data. Must be one of "None", "Embed",
"Text", or "Xml".public void setSaveType(int saveEnum)
saveEnum
- The new save type as an enum. Must be one of:
NO_DATA
, EMDED_DATA
,
DATA_FILE_TEXT
, DATA_FILE_XML
public int getSaveTypeAsEnum()
NO_DATA
, EMDED_DATA
,
DATA_FILE_TEXT
, DATA_FILE_XML
public static int getSaveTypeEnumFromString(String accessString, boolean useI18n)
accessString
- The string version of the fileAccessuseI18n
- Use the internationalized strings
public static String getSaveTypeStringFromEnum(int accessValue, boolean useI18n)
accessValue
- The enum version of the fileAccessuseI18n
- Use the internationalized strings
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |