Skip to content

IO Stream classes mimicking java.io

License

Notifications You must be signed in to change notification settings

antibiotics11/stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stream

IO Stream classes mimicking java.io

use antibiotics11\Stream\FileOutputStream;

$helloWorldFile = new FileOutputStream(name: "hello_world.txt", append: true);
for ($i = 0; $i < 10; $i++) {
    $helloWorldFile->write(bytes: "Hello, World!\r\n");
}
$helloWorldFile->flush();
$helloWorldFile->close();

Classes

  • Stream\InputStream
  • Stream\OutputStream
  • Stream\FileInputStream
  • Stream\FileOutputStream
  • Stream\BufferedOutputStream
  • Stream\StandardInputStream [Deprecated]
  • Stream\StandardOutputStream [Deprecated]

Exceptions

  • Stream\Exception\IOException
  • Stream\Exception\FileNotFoundException

Notice

  • This project is experimental and does not guarantee the same functionality as java.io.
  • Some features may be unstable due to mimicking method overloading with optional parameters.

Requirements

Installation

composer require antibiotics11/stream:dev-main

About

IO Stream classes mimicking java.io

Resources

License

Stars

Watchers

Forks

Languages