Exemple #1
0
 public void test54() throws PatternCompiler_E, IOException {
   String reg = "^\\w+\n(\\s+.*\n)*\\s+student\n(\\s+(\\d+)\n){3}";
   init(
       "\nPoint\n   66\n   32\nAlbert\n  ...\n  ¶àÐеļò½é,±ÈÈçÌس¤¡¢Ï²ºÃµÈ\n  ...\n   student\n   173\n   16\n   62\n",
       reg);
   matcher.clear();
   matcher.add(reg, false);
   assertEquals(0, find());
 }
 /* (non-Javadoc)
  * @see org.eclipse.californium.core.network.Endpoint#stop()
  */
 @Override
 public synchronized void stop() {
   if (!started) {
     LOGGER.log(Level.INFO, "Endpoint at " + getAddress() + " is already stopped");
   } else {
     LOGGER.log(Level.INFO, "Stopping endpoint at address " + getAddress());
     started = false;
     connector.stop();
     matcher.stop();
     for (EndpointObserver obs : observers) obs.stopped(this);
     matcher.clear();
   }
 }
 /* (non-Javadoc)
  * @see org.eclipse.californium.core.network.Endpoint#clear()
  */
 @Override
 public void clear() {
   matcher.clear();
 }