Package org.apache.derby.iapi.services.io

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


        // wrap the lobInputStream with a LimitInputStream class,
        // This will help in making sure only the specific amout
        // of data is read from the file, for example to read one
        // column data from the file.
        lobLimitIn = new  LimitInputStream(lobInputStream);
  
    }
View Full Code Here

      }

            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

      }

            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

      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

                            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

            }

            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

                            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

      }

            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

      }

            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

TOP

Related Classes of org.apache.derby.iapi.services.io.LimitInputStream

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.