Package org.eclipse.xtext.util

Examples of org.eclipse.xtext.util.StringInputStream.reset()


        if (outputConfig.isOverrideExistingResources()) {
          StringInputStream newContent = getInputStream(contentsAsString, encoding);
          if (hasContentsChanged(file, newContent)) {
            // reset to offset zero allows to reuse internal byte[]
            // no need to convert the string twice
            newContent.reset();
            file.setContents(newContent, true, true, monitor);
          } else {
            file.touch(getMonitor());
          }
          if (file.isDerived() != outputConfig.isSetDerivedProperty()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.