public class JsFileWriter extends Object implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
protected int |
indent |
static String |
INDENTATION_UNITY |
protected BufferedWriter |
writer |
Constructor and Description |
---|
JsFileWriter(String filePath) |
public static final String INDENTATION_UNITY
protected BufferedWriter writer
protected int indent
public JsFileWriter(String filePath)
public void line(String line) throws IOException
IOException
public void writeLine(String line) throws IOException
IOException
public void string(String line) throws IOException
IOException
public void indent() throws IOException
IOException
public void newLine() throws IOException
IOException
public void flush() throws IOException
IOException
public void close() throws Exception
close
in interface AutoCloseable
Exception
public void unindent()
Copyright © 2019. All rights reserved.