Lines Matching defs:encoding

113         // Count the number of language files and set up the encoding and dictionary data
389 ((bundle.encoding == null || bundle.encoding.equals("")) ? "" : "_" + bundle.encoding) +
403 * erase the file containing the resources at this encoding, however any changes or saves that take
408 public void hideResource(String encoding) {
411 if (bundle.encoding.equals(encoding)) {
423 public void eraseFile(String encoding) throws IOException {
426 if (!(bundle.encoding.equals(encoding))) continue;
428 ((bundle.encoding == null || bundle.encoding.equals("")) ? "" : "_" + bundle.encoding) +
432 hideResource(encoding);
438 * Writes only one of the resource files to the file system. This file is specified by the encoding parameter
441 public void writeToFile(String encoding) throws IOException {
444 if (bundle.encoding.equals(encoding) || (i==0 && encoding.equals(""))) {
446 ((bundle.encoding == null || bundle.encoding.equals("")) ? "" : "_" + bundle.encoding) +
624 * Looks through the resources contained in the bundle for a resource of the given encoding. Note that this
626 * @return True if the encoding exists as one of the resource files, false otherwise
629 public boolean hasResource(String encoding) {
630 // Check to see if the encoding exists
633 if (b.encoding.equals(encoding)) return true;
639 * Attempts to create a new resource file with the given encoding. The method first checks the base Resource Bundle
640 * to make sure that encoding does not all ready exist. If it does exist the resource file is not created.
644 * @param encoding The proper encoding for the resource. Must be of form 'language', 'language_country', or 'language_country_variant'
652 public boolean createResource(String title, String comment, String manager, String encoding,
654 if (encoding == null || encoding.equals("") || encoding.startsWith("_")) return false;
655 // Check to see if the encoding exists
656 if (hasResource(encoding)) return false;
658 Bundle bundle = new Bundle(encoding);
776 if (dictStr.trim().equals("")) dictStr = (dict.encoding.trim().equals("") ? "Base Resource Bundle" : dict.encoding);
863 if (tempb.encoding.equals(locale)) {
938 usage += "Usage:\n\njava com.ibm.almaden.TempusFugit.Tools.RBManager fileName ((-r | -d) encoding?)?";
940 usage += " encoding -> Returns results for only the language encoding specified\n";