make ByteStreamWrite class use generic OutputStream rather than FileOutputStream. facilitates Meatballs1's port forward functionality