Skip to content

9.8.0: I/O

Compare
Choose a tag to compare
@thekid thekid released this 02 Oct 16:54

Bugfixes

  • Fixed io.streams.MemoryOutputStream to behave like files when writing
    beyond stream end: Content is padded with "\0".
    (@thekid)
  • Fixed io.FileUtil::write() to overwrite open files' contents instead
    of simply appending the bytes given
    (@thekid)
  • Fixed io.File::truncate() to retain the file offset on Windows, this
    way behaving the same as Unix systems.
    (@thekid)

Features

  • Changed io.streams.FileOutputStream to implement Seekable interface
    (@thekid)
  • Added io.FileUtil::append() to complement the write() method.
    (@thekid)
  • Added optional bytes arg to io.streams.MemoryOutputStream constructor
    (@thekid)
  • Added read() and write() methods to io.FileUtil as replacements
    for getContents() and setContents()
    (@thekid)
  • Added io.streams.MemoryOutputStream::bytes() method w/o get prefix
    (@thekid)
  • Added io.TempFile::persistent() method to keep temporary files even
    after they are garbage-collected
    (@thekid)
  • Added destructor to file ensuring file handles are closed when io.File
    are garbage-collected
    (@thekid)
  • Added io.TempFile::containing() method to easily create temporary
    files and write content to them in one step
    (@thekid)
  • Merged PR #204: Deprecate util.PropertyManager - @thekid