Examples of readfilestr()


Examples of com.knowgate.dfs.FileSystem.readfilestr()

      throw new NullPointerException("Recipients file path is required");
    } else {
      if (DebugFile.trace) DebugFile.writeln("recipients="+sRecipientsFile);
    }

    String sRecipientsList = oFS.readfilestr(sRecipientsFile, "ASCII");
    if (sRecipientsList.length()==0) {
      if (DebugFile.trace) DebugFile.decIdent();
      throw new NullPointerException("Recipients file is empty");
    }
View Full Code Here

Examples of com.knowgate.dfs.FileSystem.readfilestr()

    String[] aBlackList = null;
    String sBlackListFile = oProps.getProperty("blacklist");
    if (null!=sRecipientsFile) {
      if (sRecipientsFile.trim().length()>0) {
        String sBlackList = oFS.readfilestr(sBlackListFile, "ASCII");
        if (sBlackList.length()>0) {
          aBlackList = Gadgets.split(sBlackList, "\n");
          final int nBlackList = aBlackList.length;
          for (int b=0; b<nBlackList; b++) {
            aBlackList[b] = aBlackList[b].toLowerCase();
View Full Code Here

Examples of com.knowgate.dfs.FileSystem.readfilestr()

   
    String sTextHtml = null;
    String sHtmlFilePath = oProps.getProperty("texthtml","");
    if (sHtmlFilePath.length()>0) {
      if (!sHtmlFilePath.startsWith(sUserDir)) sHtmlFilePath = sUserDir+sHtmlFilePath;
        sTextHtml = oFS.readfilestr(sHtmlFilePath, sEncoding);
    }

    // **************************
    // Get mail source plain text

View Full Code Here

Examples of com.knowgate.dfs.FileSystem.readfilestr()

    String sTextPlain = null;
    String sTextFilePath = oProps.getProperty("textplain","");
    if (sTextFilePath.length()>0) {
      if (!sTextFilePath.startsWith(sUserDir)) sTextFilePath = sUserDir+sTextFilePath;
    sTextPlain = oFS.readfilestr(sTextFilePath, sEncoding);
    }
       
    // Get mail subject
    String sSubject = oProps.getProperty("subject", "");
View Full Code Here

Examples of com.knowgate.dfs.FileSystem.readfilestr()

        File oCached = new File(sCacheFilesDir+File.separator+sCachedFile);

        if (!oCached.exists())
          oFS.mkdirs(sCacheFilesDir);
        else if (oCached.lastModified()>oDtModified.getTime())
          return oFS.readfilestr("file://"+sCacheFilesDir+File.separator+sCachedFile,
                                 sEncoding==null ? "ISO8859_1" : sEncoding);
      } catch (Exception xcpt) {
        System.err.println(xcpt.getClass().getName() + " " + xcpt.getMessage());
      }
    } // fi (oDtModified)
View Full Code Here

Examples of com.knowgate.dfs.FileSystem.readfilestr()

        File oCached = new File(sCacheFilesDir+File.separator+sCachedFile);

        if (!oCached.exists())
          oFS.mkdirs(sCacheFilesDir);
        else if (oCached.lastModified()>oDtModified.getTime())
          return oFS.readfilestr("file://"+sCacheFilesDir+File.separator+sCachedFile,
                                 sEncoding==null ? "ISO8859_1" : sEncoding);
      } catch (Exception xcpt) {
        System.err.println(xcpt.getClass().getName() + " " + xcpt.getMessage());
      }
    } // fi (oDtModified)
View Full Code Here

Examples of com.knowgate.dfs.FileSystem.readfilestr()

        oPostTransform.append(sTransformed.substring(iCloseHead, iCloseHead+7));
        oPostTransform.append(sTransformed.substring(iOpenBody, iCloseBody));

        // Cargar el código fuente del control de visulización del Integrador
        try {
          sCharBuffer = oFS.readfilestr(sCtrlPath, "UTF-8");

          if (DebugFile.trace) DebugFile.writeln(String.valueOf(sCharBuffer.length()) + " characters readed");
        }
        catch (com.enterprisedt.net.ftp.FTPException ftpe) {
          throw new IOException (ftpe.getMessage());
View Full Code Here

Examples of com.knowgate.dfs.FileSystem.readfilestr()

        oPostTransform.append(sTransformed.substring(iCloseHead, iCloseHead+7));
        oPostTransform.append(sTransformed.substring(iOpenBody, iCloseBody));

        // Cargar el código fuente del control de visulización del Integrador
        try {
          sCharBuffer = oFS.readfilestr(sCtrlPath, "UTF-8");

          if (DebugFile.trace) DebugFile.writeln(String.valueOf(sCharBuffer.length()) + " characters readed");
        }
        catch (com.enterprisedt.net.ftp.FTPException ftpe) {
          throw new IOException (ftpe.getMessage());
View Full Code Here

Examples of com.knowgate.dfs.FileSystem.readfilestr()

        DebugFile.decIdent();
      }
      throw new FileNotFoundException("PasswordRecordTemplate.load() "+sFilePath);
  }

    String sTemplate = oFs.readfilestr(sFilePath, "UTF-8");

  oMasterRecord.lines().clear();

  if (sTemplate!=null) {
    if (sTemplate.length()>0) {
View Full Code Here

Examples of com.knowgate.dfs.FileSystem.readfilestr()

    if (DebugFile.trace) DebugFile.writeln("Matched a CSS <link> regular expression "+sLinkCSS);
      String sLinkHref = oMatcher.getMatch().group(1);
      if (!oLinksSrc.containsKey(sLinkHref)) {
        try {
          FileSystem oFls = new FileSystem();
          String sLinkSrc = oFls.readfilestr(sLinkHref,"ISO8859_1");
          if (null!=sLinkSrc) {
            oLinksSrc.put(sLinkHref,"<style type=\"text/css\">\n"+sLinkSrc+"\n</style>\n");
            if (sLinkSrc.length()>0) {
              sInlinedBody = Util.substitute(oMatcher, oLinkCSS, new Perl5Substitution(oLinksSrc.get(sLinkHref), Perl5Substitution.INTERPOLATE_ALL), sSBody, Util.SUBSTITUTE_ALL);
            } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.