Package com.gentics.cr.plink

Examples of com.gentics.cr.plink.PLinkOutputStream


        if (crBean.isBinary()) {
          stream.write(crBean.getBinaryContent());

        } else {

          PLinkOutputStream plos = new PLinkOutputStream(stream, new PlinkReplacer(plinkProcessor, req));

          OutputStreamWriter wr = new OutputStreamWriter(plos, this.responseEncoding);
          String content = crBean.getContent(this.responseEncoding);
          wr.write(content);
          wr.flush();
View Full Code Here


        }
      } else {
        Object contentValue = bean.getProperty(contentAttribute);
        if (contentValue instanceof String) {
          String content = (String) contentValue;
          PLinkOutputStream plOs = new PLinkOutputStream(stream,
              plinkReplacer);
          OutputStreamWriter w = new OutputStreamWriter(plOs);
          w.write(content);
          w.close();
        }
View Full Code Here

   */
  private String replaceStringPlinks(final String content,
      final PLinkReplacer replacer) throws IOException {
    ByteArrayOutputStream os = new ByteArrayOutputStream();

    PLinkOutputStream plOs = new PLinkOutputStream(os, replacer);

    OutputStreamWriter w = new OutputStreamWriter(plOs);
    w.write(content);
    w.close();

    plOs.close();

    return os.toString();
  }
View Full Code Here

TOP

Related Classes of com.gentics.cr.plink.PLinkOutputStream

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.