public static synchronized void resetSingleton(){
  singleton.beingUsed=false;
  singleton.data=new ArrayList<Byte>();
  singleton.counter=new AtomicInteger(0);
  singleton.endReached=false;
  System.setIn(defaultIn);
}

public static synchronized void resetSingleton ( ) { singleton . beingUsed = false ; singleton . data = new ArrayList < Byte > ( ) ; singleton . counter = new AtomicInteger ( 0 ) ; singleton . endReached = false ; System . setIn ( defaultIn ) ; }
reset the static state be re - instantiate the singleton
