本文整理了Java中org.arakhne.afc.vmutil.locale.Locale
类的一些代码示例,展示了Locale
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Locale
类的具体详情如下:
包路径:org.arakhne.afc.vmutil.locale.Locale
类名称:Locale
暂无
代码示例来源:origin: org.arakhne.afc.core/inputoutput
/** Constructor.
* @param acceptDirectories is <code>true</code> to
* permit to this file filter to accept directories;
* <code>false</code> if the directories should not
* match.
*/
public INIFileFilter(boolean acceptDirectories) {
super(
acceptDirectories,
Locale.getString(INIFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
EXTENSION_INI);
}
代码示例来源:origin: org.arakhne.afc.advanced/dbasefile
/** Read a STRING record value.
*
* @param field is the current parsed field.
* @param nrecord is the number of the record
* @param nfield is the number of the field
* @param rawData raw data
* @param rawOffset is the index at which the data could be obtained
* @param value will be set with the value extracted from the dBASE file
* @return the count of consumed bytes
* @throws IOException in case of error.
*/
private int readStringRecordValue(DBaseFileField field, int nrecord, int nfield, byte[] rawData,
int rawOffset, OutputParameter<String> value) throws IOException {
final byte[] recordData = new byte[field.getLength()];
System.arraycopy(rawData, rawOffset, recordData, 0, recordData.length);
String data;
if (hasOption(OPTION_DECODE_STRING)) {
data = Locale.decodeString(recordData).trim();
} else {
data = new String(recordData).trim();
}
// ignore the data that does not contain anything
if (data == null || data.length() == 0 || DBaseFileField.isUnsetValue(data)) {
data = null;
}
value.set(data);
return recordData.length;
}
代码示例来源:origin: org.arakhne.afc.core/inputoutput
/** Constructor.
* @param acceptDirectories is <code>true</code> to
* permit to this file filter to accept directories;
* <code>false</code> if the directories should not
* match.
*/
public PDFFileFilter(boolean acceptDirectories) {
super(
acceptDirectories,
Locale.getString(PDFFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
EXTENSION_PDF);
}
代码示例来源:origin: org.arakhne.afc.core/inputoutput
/** Constructor.
* @param acceptDirectories is <code>true</code> to
* permit to this file filter to accept directories;
* <code>false</code> if the directories should not
* match.
*/
public GXLFileFilter(boolean acceptDirectories) {
super(
acceptDirectories,
Locale.getString(GXLFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
EXTENSION_GXL);
}
代码示例来源:origin: org.arakhne.afc.core/inputoutput
/** Constructor.
* @param acceptDirectories is <code>true</code> to
* permit to this file filter to accept directories;
* <code>false</code> if the directories should not
* match.
*/
public JPEGFileFilter(boolean acceptDirectories) {
super(
acceptDirectories,
Locale.getString(JPEGFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
EXTENSION_JPG, EXTENSION_JPEG, EXTENSION_JPE);
}
代码示例来源:origin: org.arakhne.afc.core/inputoutput
/** Constructor.
* @param acceptDirectories is <code>true</code> to
* permit to this file filter to accept directories;
* <code>false</code> if the directories should not
* match.
*/
public D3DSFileFilter(boolean acceptDirectories) {
super(
acceptDirectories,
Locale.getString(D3DSFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
EXTENSION_3DS);
}
代码示例来源:origin: org.arakhne.afc.core/inputoutput
/** Constructor.
* @param acceptDirectories is <code>true</code> to
* permit to this file filter to accept directories;
* <code>false</code> if the directories should not
* match.
*/
public GIFFileFilter(boolean acceptDirectories) {
super(
acceptDirectories,
Locale.getString(GIFFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
EXTENSION_GIF);
}
代码示例来源:origin: org.arakhne.afc.core/inputoutput
/** Constructor.
* @param acceptDirectories is <code>true</code> to
* permit to this file filter to accept directories;
* <code>false</code> if the directories should not
* match.
*/
public GraphMLFileFilter(boolean acceptDirectories) {
super(
acceptDirectories,
Locale.getString(GraphMLFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
EXTENSION_GRAPHML, EXTENSION_GRL);
}
代码示例来源:origin: org.arakhne.afc.core/inputoutput
/** Constructor.
* @param acceptDirectories is <code>true</code> to
* permit to this file filter to accept directories;
* <code>false</code> if the directories should not
* match.
*/
public PNGFileFilter(boolean acceptDirectories) {
super(
acceptDirectories,
Locale.getString(PNGFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
EXTENSION_PNG);
}
代码示例来源:origin: org.arakhne.afc.core/inputoutput
/** Constructor.
* @param acceptDirectories is <code>true</code> to
* permit to this file filter to accept directories;
* <code>false</code> if the directories should not
* match.
*/
public JARFileFilter(boolean acceptDirectories) {
super(
acceptDirectories,
Locale.getString(JARFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
EXTENSION_JAR);
}
代码示例来源:origin: org.arakhne.afc.core/inputoutput
/** Constructor.
* @param acceptDirectories is <code>true</code> to
* permit to this file filter to accept directories;
* <code>false</code> if the directories should not
* match.
*/
public DOTFileFilter(boolean acceptDirectories) {
super(
acceptDirectories,
Locale.getString(DOTFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
EXTENSION_DOT);
}
代码示例来源:origin: org.arakhne.afc.core/inputoutput
/** Constructor.
* @param acceptDirectories is <code>true</code> to
* permit to this file filter to accept directories;
* <code>false</code> if the directories should not
* match.
*/
public JAVAFileFilter(boolean acceptDirectories) {
super(
acceptDirectories,
Locale.getString(JAVAFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
EXTENSION_JAVA);
}
代码示例来源:origin: org.arakhne.afc.core/inputoutput
/** Constructor.
* @param acceptDirectories is <code>true</code> to
* permit to this file filter to accept directories;
* <code>false</code> if the directories should not
* match.
*/
public BMPFileFilter(boolean acceptDirectories) {
super(
acceptDirectories,
Locale.getString(BMPFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
EXTENSION_BMP);
}
代码示例来源:origin: org.arakhne.afc.core/inputoutput
/** Constructor.
* @param acceptDirectories is <code>true</code> to
* permit to this file filter to accept directories;
* <code>false</code> if the directories should not
* match.
*/
public GMLFileFilter(boolean acceptDirectories) {
super(
acceptDirectories,
Locale.getString(GMLFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
EXTENSION_GML);
}
代码示例来源:origin: org.arakhne.afc.core/inputoutput
/** Constructor.
* @param acceptDirectories is <code>true</code> to
* permit to this file filter to accept directories;
* <code>false</code> if the directories should not
* match.
*/
public PDFTeXFileFilter(boolean acceptDirectories) {
super(
acceptDirectories,
Locale.getString(PDFTeXFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
EXTENSION_PDFTEX_T, EXTENSION_PDF_TEX);
}
代码示例来源:origin: org.arakhne.afc.core/inputoutput
/** Constructor.
* @param acceptDirectories is <code>true</code> to
* permit to this file filter to accept directories;
* <code>false</code> if the directories should not
* match.
*/
public NGRFileFilter(boolean acceptDirectories) {
super(
acceptDirectories,
Locale.getString(NGRFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
EXTENSION_NGR, EXTENSION_NED);
}
代码示例来源:origin: org.arakhne.afc.core/inputoutput
/** Constructor.
* @param acceptDirectories is <code>true</code> to
* permit to this file filter to accept directories;
* <code>false</code> if the directories should not
* match.
*/
public CSVFileFilter(boolean acceptDirectories) {
super(
acceptDirectories,
Locale.getString(CSVFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
EXTENSION_CSV);
}
代码示例来源:origin: org.arakhne.afc.core/inputoutput
/** Constructor.
* @param acceptDirectories is <code>true</code> to
* permit to this file filter to accept directories;
* <code>false</code> if the directories should not
* match.
*/
public EPSFileFilter(boolean acceptDirectories) {
super(
acceptDirectories,
Locale.getString(EPSFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
EXTENSION_EPS);
}
代码示例来源:origin: org.arakhne.afc.core/inputoutput
/** Constructor.
* @param acceptDirectories is <code>true</code> to
* permit to this file filter to accept directories;
* <code>false</code> if the directories should not
* match.
*/
public XMLFileFilter(boolean acceptDirectories) {
super(
acceptDirectories,
Locale.getString(XMLFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
EXTENSION_XML);
}
代码示例来源:origin: org.arakhne.afc.core/inputoutput
/** Constructor.
* @param acceptDirectories is <code>true</code> to
* permit to this file filter to accept directories;
* <code>false</code> if the directories should not
* match.
*/
public SVGFileFilter(boolean acceptDirectories) {
super(
acceptDirectories,
Locale.getString(SVGFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
EXTENSION_SVG);
}
内容来源于网络,如有侵权,请联系作者删除!