Examples of LimitInputStream


Examples of com.google.common.io.LimitInputStream

               } catch (IOException e) {
                  Closeables.closeQuietly(inputStream);
                  throw e;
               }
            }
            return new LimitInputStream(inputStream, length);
         }
      });
   }
View Full Code Here

Examples of nexj.core.util.LimitInputStream

        
         if (lMaxSize > 0)
         {
            final boolean bParam = (sFileName == null);

            is = new LimitInputStream(multipartStream, lMaxSize, true)
            {
               /**
                * @see nexj.core.util.LimitInputStream#throwLimitException()
                */
               protected int throwLimitException() throws LimitIOException
View Full Code Here

Examples of nexj.core.util.LimitInputStream

      {
         int nSize = m_request.getContentLength();
        
         if (nSize < 0)
         {
            return new LimitInputStream(m_request.getInputStream(), m_lMaxRequestSize, true);
         }

         if (nSize > m_lMaxRequestSize)
         {
            throw new RPCSizeException("err.rpc.requestSize",
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

        // 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

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

      }

            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

      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

                            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

            }

            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
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.