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

Examples of org.eclipse.wst.sse.core.internal.encoding.util.NullInputStream


          // for now will just assume core exception
          // means it
          // doesn't exist on file system, yet.
          // and we'll log, just in case its a noteable error
          Logger.logException(e);
          inputStream = new NullInputStream();
        }
        resettableStream = new BufferedInputStream(inputStream, CodedIO.MAX_BUF_SIZE);
      }
      else {
        if (fInputStream != null) {
          if (fInputStream.markSupported()) {
            resettableStream = fInputStream;
            // try {
            resettableStream.reset();
            // }
            // catch (IOException e) {
            // // assumed just hasn't been marked yet, so ignore
            // }
          }
          else {
            resettableStream = new BufferedInputStream(fInputStream, CodedIO.MAX_BUF_SIZE);
          }
        }
      }

      if (resettableStream == null) {
        resettableStream = new NullInputStream();
      }

      // mark this once, stream at "zero" position
      resettableStream.mark(MAX_MARK_SIZE);
      return resettableStream;
View Full Code Here

TOP

Related Classes of org.eclipse.wst.sse.core.internal.encoding.util.NullInputStream

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.