Package de.matrixweb.vfs.VFSUtils

Examples of de.matrixweb.vfs.VFSUtils.Pipe


    final VFile snapshot = vfs.stack();
    try {
      final VFile source = vfs.find(input.getPath());
      final VFile target = vfs.find(FilenameUtils.removeExtension(input
          .getPath()) + "." + resultType);
      VFSUtils.pipe(source, target, new Pipe() {
        @Override
        public void exec(final Reader reader, final Writer writer)
            throws IOException {
          callback.call(reader, writer);
        }
View Full Code Here


      for (final VFile file : ResourceUtil.getFilesByExtension(vfs, sourceType)) {
        final VFile target = vfs.find(FilenameUtils.removeExtension(file
            .getPath()) + "." + resultType);

        // ... call <processorCallback>
        VFSUtils.pipe(file, target, new Pipe() {
          @Override
          public void exec(final Reader reader, final Writer writer)
              throws IOException {
            callback.call(reader, writer);
          }
View Full Code Here

TOP

Related Classes of de.matrixweb.vfs.VFSUtils.Pipe

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.