Examples of LimitInputStream


Examples of org.apache.derby.iapi.services.io.LimitInputStream

      }

            if (lmfs > 0)
            {
                // Just wrap the InputStream with a LimitInputStream class
                LimitInputStream  limitResultIn = new  LimitInputStream(stream);
                limitResultIn.setLimit(lmfs);
                stream = limitResultIn;
            }
      currentStream = stream;
      return stream;
View Full Code Here

Examples of org.apache.derby.iapi.services.io.LimitInputStream

                            RawStoreFactory.STREAM_FILE_BUFFER_SIZE_DEFAULT);

          decryptIn =
                        new DecryptInputStream(fileIn, byteHolder, dataFactory);

          limitIn = new LimitInputStream(decryptIn);
        }
                else
                {
          bufferedIn =
                        new BufferedInputStream(
                            fileIn,
                            RawStoreFactory.STREAM_FILE_BUFFER_SIZE_DEFAULT);

          limitIn = new LimitInputStream(bufferedIn);
        }

        // the logicalDataIn input stream is on top of a limit Input
        // stream, use a limit stream to make sure we don't read off
        // more then what each column says it contains
View Full Code Here

Examples of org.apache.derby.iapi.services.io.LimitInputStream

      ZipEntry ze;
      while ((ze = jf.getNextEntry(zipIn)) != null) {

        if (ze.getName().equals(name)) {
          LimitInputStream lis = new LimitInputStream(zipIn);
          lis.setLimit((int) ze.getSize());
          return lis;
        }
      }

      zipIn.close();
View Full Code Here

Examples of org.apache.derby.iapi.services.io.LimitInputStream

      }

            if (lmfs > 0)
            {
                // Just wrap the InputStream with a LimitInputStream class
                LimitInputStream  limitResultIn = new  LimitInputStream(stream);
                limitResultIn.setLimit(lmfs);
                stream = limitResultIn;
            }
      currentStream = stream;
      return stream;
View Full Code Here

Examples of org.apache.derby.iapi.services.io.LimitInputStream

                            RawStoreFactory.STREAM_FILE_BUFFER_SIZE_DEFAULT);

          decryptIn =
                        new DecryptInputStream(fileIn, byteHolder, dataFactory);

          limitIn = new LimitInputStream(decryptIn);
        }
                else
                {
          bufferedIn =
                        new BufferedInputStream(
                            fileIn,
                            RawStoreFactory.STREAM_FILE_BUFFER_SIZE_DEFAULT);

          limitIn = new LimitInputStream(bufferedIn);
        }

        // the logicalDataIn input stream is on top of a limit Input
        // stream, use a limit stream to make sure we don't read off
        // more then what each column says it contains
View Full Code Here

Examples of org.apache.hadoop.hbase.io.LimitInputStream

          if (available > 0 && available < size) {
            throw new EOFException("Available stream not enough for edit, " +
                "inputStream.available()= " + this.inputStream.available() + ", " +
                "entry size= " + size);
          }
          final InputStream limitedInput = new LimitInputStream(this.inputStream, size);
          builder.mergeFrom(limitedInput);
        } catch (InvalidProtocolBufferException ipbe) {
          throw (EOFException) new EOFException("Invalid PB, EOF? Ignoring; originalPosition=" +
            originalPosition + ", currentPosition=" + this.inputStream.getPos() +
            ", messageSize=" + size + ", currentAvailable=" + available).initCause(ipbe);
View Full Code Here

Examples of org.apache.hadoop.hbase.io.LimitInputStream

          if (available > 0 && available < size) {
            throw new EOFException("Available stream not enough for edit, " +
                "inputStream.available()= " + this.inputStream.available() + ", " +
                "entry size= " + size);
          }
          final InputStream limitedInput = new LimitInputStream(this.inputStream, size);
          builder.mergeFrom(limitedInput);
        } catch (InvalidProtocolBufferException ipbe) {
          throw (EOFException) new EOFException("Invalid PB, EOF? Ignoring; originalPosition=" +
            originalPosition + ", currentPosition=" + this.inputStream.getPos() +
            ", messageSize=" + size + ", currentAvailable=" + available).initCause(ipbe);
View Full Code Here

Examples of org.apache.hadoop.hbase.io.LimitInputStream

          if (available > 0 && available < size) {
            throw new EOFException("Available stream not enough for edit, " +
                "inputStream.available()= " + this.inputStream.available() + ", " +
                "entry size= " + size);
          }
          final InputStream limitedInput = new LimitInputStream(this.inputStream, size);
          builder.mergeFrom(limitedInput);
        } catch (InvalidProtocolBufferException ipbe) {
          throw (EOFException) new EOFException("Invalid PB, EOF? Ignoring; originalPosition=" +
            originalPosition + ", currentPosition=" + this.inputStream.getPos() +
            ", messageSize=" + size + ", currentAvailable=" + available).initCause(ipbe);
View Full Code Here

Examples of org.apache.hadoop.hbase.io.LimitInputStream

          if (available > 0 && available < size) {
            throw new EOFException("Available stream not enough for edit, " +
                "inputStream.available()= " + this.inputStream.available() + ", " +
                "entry size= " + size);
          }
          final InputStream limitedInput = new LimitInputStream(this.inputStream, size);
          builder.mergeFrom(limitedInput);
        } catch (InvalidProtocolBufferException ipbe) {
          throw (EOFException) new EOFException("Invalid PB, EOF? Ignoring; originalPosition=" +
            originalPosition + ", currentPosition=" + this.inputStream.getPos() +
            ", messageSize=" + size + ", currentAvailable=" + available).initCause(ipbe);
View Full Code Here

Examples of org.apache.hadoop.hbase.io.LimitInputStream

          if (available > 0 && available < size) {
            throw new EOFException("Available stream not enough for edit, " +
                "inputStream.available()= " + this.inputStream.available() + ", " +
                "entry size= " + size);
          }
          final InputStream limitedInput = new LimitInputStream(this.inputStream, size);
          builder.mergeFrom(limitedInput);
        } catch (InvalidProtocolBufferException ipbe) {
          throw (EOFException) new EOFException("Invalid PB, EOF? Ignoring; originalPosition=" +
            originalPosition + ", currentPosition=" + this.inputStream.getPos() +
            ", messageSize=" + size + ", currentAvailable=" + available).initCause(ipbe);
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.