Examples of PLinkOutputStream


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

Examples of com.gentics.cr.plink.PLinkOutputStream

        }
      } 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

Examples of com.gentics.cr.plink.PLinkOutputStream

   */
  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
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.