private void writeStatement() throws RDFHandlerException, IOException {
  Statement st=statementQueue.remove();
  int subjId=getValueId(st.getSubject());
  int predId=getValueId(st.getPredicate());
  int objId=getValueId(st.getObject());
  int contextId=getValueId(st.getContext());
  decValueFreq(st.getSubject());
  decValueFreq(st.getPredicate());
  decValueFreq(st.getObject());
  decValueFreq(st.getContext());
  out.writeByte(STATEMENT);
  writeValueOrId(st.getSubject(),subjId);
  writeValueOrId(st.getPredicate(),predId);
  writeValueOrId(st.getObject(),objId);
  writeValueOrId(st.getContext(),contextId);
}

private void writeStatement ( ) throws RDFHandlerException , IOException { Statement st = statementQueue . remove ( ) ; int subjId = getValueId ( st . getSubject ( ) ) ; int predId = getValueId ( st . getPredicate ( ) ) ; int objId = getValueId ( st . getObject ( ) ) ; int contextId = getValueId ( st . getContext ( ) ) ; decValueFreq ( st . getSubject ( ) ) ; decValueFreq ( st . getPredicate ( ) ) ; decValueFreq ( st . getObject ( ) ) ; decValueFreq ( st . getContext ( ) ) ; out . writeByte ( STATEMENT ) ; writeValueOrId ( st . getSubject ( ) , subjId ) ; writeValueOrId ( st . getPredicate ( ) , predId ) ; writeValueOrId ( st . getObject ( ) , objId ) ; writeValueOrId ( st . getContext ( ) , contextId ) ; }
writes the first statement from the statement queue
