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

have a public flushBuffer() for buffered output streams/writers

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.1.8
    • core-libs
    • generic
    • generic



      Name: skT88420 Date: 10/05/99


      I have a situation where I am passing an OutputStream wrapped
      by an OutputStreamWriter to a method that requires a Writer.
      Because the stream I am passing to the method is buffered
      (OutputStreamWriter is buffered), I must call flush() on the
      stream when the method returns. This completely flushes the
      stream which is not what I desire, I just want the buffer in
      OutputStreamWriter to be empty. Interestingly enough, there
      is a package accessible flushBuffer() method which is used for
      the purpose I have described by sun inside PrintStream. To do
      what I ask for, all you would have to do is make flushBuffer()
      public!
      (Review ID: 96168)
      ======================================================================

            smarks Stuart Marks
            skonchad Sandeep Konchady
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: