Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None

      Description

      I just created IO-139 for a StringBuilder Writer implementation that requies JDK 1.5. So I thought I would look at the impact on IO of 1) Removing all deprecations and 2) Making appropriate JDK 1.5 changes (generics, using StringBuilder and new Appendable for Writers). Below is a summary, thought it could be a starting point for discussion about IO 2.0

      1) DEPRECATIONS

      • CopyUtils
      • FileCleaner
      • WildcardFilter
      • FileSystemUtils freeSpace(String)
      • IOUtils toByteArray(String), toString(byte[]), toString(byte[], String)

      2) JDK 1.5

      • ConditionalFileFilter List (and also AndFileFilter and OrFileFilter implementations
      • getFileFilters() and setFileFilters() use generic List<IOFileFilter>
      • Constructor for NameFileFilter, PrefixFileFilter, SuffixFileFilter, WildcardFileFilter use generic List<String>
      • replace StringBuffer with StringBuilder where appropriate (FilenameUtils, FileSystemUtils, HexDump,IOUtils
      • FileUtils
      • convertFileCollectionToFileArray() --> Collection<File>
      • listFiles() --> Collection<File>
      • listFiles() --> Collection<File>
      • writeStringToFile String-->CharSequence (JDK 1.4+)
      • ProxyReader - add read(CharBuffer)
      • IOUtils
      • readLines(Reader) return List<String>
      • toInputStream(String) --> toInputStream(CharSequence) (JDK 1.4+)
      • write(String data, OutputStream) and write(StringBuffer data, OutputStream) --> write(CharSequence data, OutputStream)
      • write(String, Writer) and write(StringBuffer, Writer) --> write(CharSequence data, Writer)
      • LineIterator Iterator --> Iterator<String
      • NullWriter - add "Appendable" methods
      • ProxyWriter - add "Appendable" methods

        Activity

        Niall Pemberton created issue -
        Niall Pemberton made changes -
        Field Original Value New Value
        Attachment IO-2.0-deprecate-and-jdk5.patch [ 12370086 ]
        Niall Pemberton made changes -
        Fix Version/s 2.x [ 12312838 ]
        Fix Version/s 2.0 [ 12312961 ]
        Summary IO 2.0 - remove deprecations and move to JDK 1.5 IO 2.0 - Move to JDK 1.5
        Niall Pemberton made changes -
        Issue Type Wish [ 5 ] Improvement [ 4 ]
        Niall Pemberton made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Assignee Niall Pemberton [ niallp ]
        Henri Yandell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Workflow jira [ 12417734 ] Default workflow, editable Closed status [ 12601926 ]

          People

          • Assignee:
            Niall Pemberton
            Reporter:
            Niall Pemberton
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development