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
IOExceptionpublic void writeLine(String line) throws IOException
IOExceptionpublic void string(String line) throws IOException
IOExceptionpublic void indent()
throws IOException
IOExceptionpublic void newLine()
throws IOException
IOExceptionpublic void flush()
throws IOException
IOExceptionpublic void close()
throws Exception
close in interface AutoCloseableExceptionpublic void unindent()
Copyright © 2019. All rights reserved.