lib: intro `Writer::write_byte` and implement it in `FileWriter`
[nit.git] / lib / standard / stream.nit
index 6b6d3fe..7c4e606 100644 (file)
@@ -345,6 +345,9 @@ abstract class Writer
        # write a string
        fun write(s: Text) is abstract
 
+       # Write a single byte
+       fun write_byte(value: Int) is abstract
+
        # Can the stream be used to write
        fun is_writable: Bool is abstract
 end