Probably want to pass this along to the caller (add a throws to the method). They'll need to catch IOExceptions anyways if they intend to read from the stream.