docs: protected synchronized void setStream(InputStream s)
      {
          if (stream != null)
          {
              throw new UnsupportedOperationException("Cannot set the stream of an open resource");
          }
          stream = s;
          streamState = StreamStates.OPEN;
      }