Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-305

New copy() method in IOUtils that takes additional offset, length and buffersize arguments

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.2
    • Utilities
    • None

    Description

      /**

      • Copy from input to output stream
      • @param is : input stream
      • @param os : output stream
      • @param offset : number of bytes to skip from input before copying
      • -ve values are ignored
      • @param len : number of bytes to copy. -1 means all
      • @param bufferSize : buffer size to use for copying
      • @throws IOException
        */
        public static void copy( InputStream is, OutputStream os, int offset, int len, int bufferSize) throws IOException

      Attachments

        1. IOUtils.java
          1 kB
          Manoj Mokashi
        2. IOUtilsTest.java
          5 kB
          Manoj Mokashi

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mmokashi Manoj Mokashi
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: