public static Stella_Object accessInputStreamSlotValue(InputStream self, Symbol slotname, Stella_Object value, boolean setvalueP) {
    if (slotname == Stella.SYM_STELLA_ECHO_STREAM) {
      if (setvalueP) {
        self.echoStream = ((OutputStream)(value));
      }
      else {
        value = self.echoStream;
      }
    }
    else if (slotname == Stella.SYM_STELLA_TOKENIZER_STATE) {
      if (setvalueP) {
        self.tokenizerState = ((TokenizerStreamState)(value));
      }
      else {
        value = self.tokenizerState;
      }
    }
    else if (slotname == Stella.SYM_STELLA_BUFFERING_SCHEME) {
      if (setvalueP) {
        self.bufferingScheme = ((Keyword)(value));
      }
      else {
        value = self.bufferingScheme;
      }
    }
    else {
      { OutputStringStream stream000 = OutputStringStream.newOutputStringStream();

        stream000.nativeStream.print("`" + slotname + "' is not a valid case option");
        throw ((StellaException)(StellaException.newStellaException(stream000.theStringReader()).fillInStackTrace()));
      }
    }
    return (value);
  }