public OutputStream getWriteStream() throws IOException
    {
    	if (s == null) {
            return null;
    	}
    	if (os == null) {
            os = s.getOutputStream();
    	}
    	return os;
    }