public class ASWriter extends Object implements IASWriter
| Constructor and Description |
|---|
ASWriter(IASProject project,
List<ICompilerProblem> problems,
ICompilationUnit compilationUnit,
boolean enableDebug)
Create a JSApplication writer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
writeTo(File out)
Start writing to a file.
|
void |
writeTo(OutputStream out)
Start writing to output stream.
|
public ASWriter(IASProject project, List<ICompilerProblem> problems, ICompilationUnit compilationUnit, boolean enableDebug)
application - the JSApplication model to be encodeduseCompression - use ZLIB compression if truepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void writeTo(OutputStream out)
IASWriterpublic int writeTo(File out) throws FileNotFoundException, IOException
IASWriterwriteTo in interface IASWriterout - The output File.FileNotFoundExceptionIOExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.