Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8304745

Lazily initialize byte[] in java.io.BufferedInputStream

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • None
    • core-libs
    • None
    • b18

      By default BufferedInputStream is constructed with internal buffer with capacity 8192. In some cases this buffer is never used, e.g. when we call readNBytes() or readAllBytes() or when BufferedInputStream is cascaded.

            stsypanov Sergey Tsypanov
            stsypanov Sergey Tsypanov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: