added outputStream.writeN, outputStream.writeUpToN,inputStream.readN, inputStream.readUpToN

This line can be deleted, now that all of java.io is import (which is fine).