Package com.xmultra.util

Examples of com.xmultra.util.Strings


        errEntry = new ErrorLogEntry(this, VERSION);

        this.imh = imh;

        // Make a Strings instance.
        this.strings = new Strings();

        // Create DateUtils instance and add it to the InitMapHolder.
        DateUtils dateUtils = new DateUtils(strings);
        initMapHolder.setEntry(this, InitMapHolder.DATE_UTILS, dateUtils);
View Full Code Here


     *                                              reading the config file.
     */
    void init() throws InvalidConfigFileFormatException,IOException {

        // Create Strings object.
        this.strings = new Strings();

        // Create a new InitMapHolder.
        initMapHolder = new InitMapHolder();

        try {
View Full Code Here

    /**
     * Constructor initializes attributes.
     */
    public UnZAProcessor() {
        this.fileNameHashMap = new HashMap<String, Integer>();
        this.strings = new Strings();
    }
View Full Code Here

                        SyncFlag stopFlag) {

        if (!super.init(n, imh, sf, stopFlag)) return false;

        this.fileHolder = new FileHolder();
        this.strings = new Strings();
        this.printer = new DOMPrinter(this.xmlParseUtils);

        Element rssMergeEl = (Element)n;

        this.destWriter = new DestinationWriter();
View Full Code Here

        // Create the log entry objects.
        msgEntry = new MessageLogEntry(this, VERSION);
        errEntry = new ErrorLogEntry(this, VERSION);

        // Create Strings instance and add it to the InitMapHolder.
        strings = new Strings();
        initMapHolder.setEntry(this, InitMapHolder.STRINGS, strings);

        // Get the directory to move a file to after processing it.
        srcDoneLocFile = getLocationDirectory(
                XmultraConfig.SRC_DONE_LOCATION_ELEMENT);
View Full Code Here

    }

    XmlParseUtils xmlParseUtils = (XmlParseUtils) imh.getEntry(InitMapHolder.
        XML_PARSE_UTILS);
    FileUtils fileUtils = (FileUtils) imh.getEntry(InitMapHolder.FILE_UTILS);
    Strings strings = new Strings();

    // Get the db_utils config file and DTD.
    configDocString = fileUtils.addRoot(configDocString);
    String dbUtilsConfigDocString =
        fileUtils.readFile(new File(configDocString));
    String dbUtilsConfigDTDFile = fileUtils.addRoot("defs/db_utils_cfg.dtd");

    // Add the DTD with root to the config file.
    if (strings.matches(" SYSTEM\\s+\".+\"\\s*>",
                        dbUtilsConfigDocString)) {
      dbUtilsConfigDocString = strings.getPreMatch() + " SYSTEM \"" +
          dbUtilsConfigDTDFile + "\">" + strings.getPostMatch();
    }

    // Convert the config String to an Xml Document.
    try {
      this.dbUtilsConfigDoc = xmlParseUtils.convertStringToXmlDocument(
View Full Code Here

        // Creates a DocMeter that shows average rates over the last 100 docs.
        docMeter = new DocMeter(100);

        // Create Strings instance and add it to the InitMapHolder.
        strings = new Strings();
        initMapHolder.setEntry(this, InitMapHolder.STRINGS, strings);

        // Create DateUtils instance and add it to the InitMapHolder.
        DateUtils dateUtils = new DateUtils(strings);
        initMapHolder.setEntry(this, InitMapHolder.DATE_UTILS, dateUtils);
View Full Code Here

        // Create the log entry objects.
        msgEntry = new MessageLogEntry(this, VERSION);
        errEntry = new ErrorLogEntry(this, VERSION);

        // Create Strings instance and add it to the InitMapHolder.
        strings = new Strings();
        initMapHolder.setEntry(this, InitMapHolder.STRINGS, strings);

        // Get the directory to move a file to after processing it.
        srcDoneLocFile = getLocationDirectory(XmultraConfig.SRC_DONE_LOCATION_ELEMENT);
        if (srcDoneLocFile == null) {
View Full Code Here

        // Create the log entry objects.
        msgEntry = new MessageLogEntry(this, VERSION);
        errEntry = new ErrorLogEntry(this, VERSION);

        // Create Strings instance and add it to the InitMapHolder.
        strings = new Strings();
        initMapHolder.setEntry(this, InitMapHolder.STRINGS, strings);

        // Get the directory to move a file to after processing it.
        srcDoneLocFile = getLocationDirectory(XmultraConfig.SRC_DONE_LOCATION_ELEMENT);
        if (srcDoneLocFile == null) {
View Full Code Here

     */
    public boolean init (Node n, InitMapHolder imh, SyncFlag sf, SyncFlag stopFlag) {

        if (!super.init(n, imh, sf, stopFlag)) return false;

        this.strings = new Strings();

        msgEntry = new MessageLogEntry(this, VERSION);
        errEntry = new ErrorLogEntry(this, VERSION);

        // Get the SourceLocation String reference (used in error messages).
View Full Code Here

TOP

Related Classes of com.xmultra.util.Strings

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.