Why Java OutputStream.write() Takes Integer but Writes Bytes

Viewed 17640

I am writing an OutputStream, just noticed this in the OutputStream interface,

   public abstract void write(int b) throws IOException;

This call write one byte to the stream but why it takes integer as an argument?

5 Answers
Related