Java Stream Close closeHTML(String pageTemplate, PrintStream out)

Here you can find the source of closeHTML(String pageTemplate, PrintStream out)

Description

close HTML

License

Apache License

Declaration

public static void closeHTML(String pageTemplate, PrintStream out) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.PrintStream;

public class Main {
    private static final String TEMPLATE_CONTENT = "${content}";

    public static void closeHTML(String pageTemplate, PrintStream out) {
        out.print(pageTemplate.substring(pageTemplate.indexOf(TEMPLATE_CONTENT) + TEMPLATE_CONTENT.length()));
    }/*from w  ww  . ja va 2 s.  c  o m*/
}

Related

  1. closeFile(RandomAccessFile file)
  2. closeFiles(Closeable... closeables)
  3. closeFileWriter(BufferedWriter bw)
  4. closeFileWriter(FileWriter file)
  5. closeGZipStream(GZIPOutputStream outStream)
  6. closeIgnoreExceptions(Closeable c)
  7. closeIgnoreExceptions(Closeable stream)
  8. closeIgnoreIOEx(ByteArrayOutputStream baos)
  9. closeIgnoringException(final Closeable closeable)