Package org.eclipse.wst.sse.core.internal.encoding

Examples of org.eclipse.wst.sse.core.internal.encoding.CodedStreamCreator


    protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
     
      // https://w3.opensource.ibm.com/bugzilla/show_bug.cgi?id=3765
      // save file w/ no intermediate model creation
     
      CodedStreamCreator codedStreamCreator = new CodedStreamCreator();
      Reader reader = new DocumentReader(this.fJSPDoc);
      codedStreamCreator.set(this.fJSPFile, reader);
     
      ByteArrayOutputStream codedByteStream = null;
      InputStream codedStream = null;
      try {
        codedByteStream = codedStreamCreator.getCodedByteArrayOutputStream();
        codedStream = new ByteArrayInputStream(codedByteStream.toByteArray());
        if (this.fJSPFile.exists())
          this.fJSPFile.setContents(codedStream, true, true, null);
        else
          this.fJSPFile.create(codedStream, false, null);
View Full Code Here

TOP

Related Classes of org.eclipse.wst.sse.core.internal.encoding.CodedStreamCreator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.