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 Closeable
close
in interface AutoCloseable
IOException
public void writeTo(OutputStream out)
IASWriter
public int writeTo(File out) throws FileNotFoundException, IOException
IASWriter
writeTo
in interface IASWriter
out
- The output File
.FileNotFoundException
IOException
Copyright © 2016 The Apache Software Foundation. All rights reserved.