@Override public void endOfStream() throws AdeException {
  if (m_inPeriod) {
    closePeriod();
  }
}

@ Override public void endOfStream ( ) throws AdeException { if ( m_inPeriod ) { closePeriod ( ) ; } }
handle the the of stream
