Examples of reinit()


Examples of org.apache.lucene.util.encoding.IntEncoder.reInit()

    encoderTest(new VInt8IntEncoder());
   
    // cover negative numbers;
    IntEncoder enc = new VInt8IntEncoder();
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    enc.reInit(baos);
    enc.encode(-1);
   
    IntDecoder dec = enc.createMatchingDecoder();
    dec.reInit(new ByteArrayInputStream(baos.toByteArray()));
    assertEquals(-1, dec.decode());
View Full Code Here

Examples of org.apache.lucene.util.encoding.VInt8IntEncoder.reInit()

    encoderTest(new VInt8IntEncoder());
   
    // cover negative numbers;
    IntEncoder enc = new VInt8IntEncoder();
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    enc.reInit(baos);
    enc.encode(-1);
   
    IntDecoder dec = enc.createMatchingDecoder();
    dec.reInit(new ByteArrayInputStream(baos.toByteArray()));
    assertEquals(-1, dec.decode());
View Full Code Here

Examples of org.apache.uima.cas.impl.CASImpl.reinit()

      tcas2.setDocumentText("bar");

      // reinit
      //  This uses cas2 which only has a base type system to start,
      //    and loads it from a complete serialization which has other new types
      cas2.reinit(ser);
      CAS tcas3 = cas2.getCurrentView();

      assertTrue(tcas2 == tcas3);
      assertNotNull(cas1.getTypeSystem().getType("NamedEntity"));
      assertNotNull(tcas3.getTypeSystem().getType("NamedEntity"));
View Full Code Here

Examples of org.apache.uima.cas.impl.CASImpl.reinit()

      tcas2.setDocumentText("bar");

      // reinit
      //  This uses cas2 which only has a base type system to start,
      //    and loads it from a complete serialization which has other new types
      cas2.reinit(ser);
      CAS tcas3 = cas2.getCurrentView();

      assertTrue(tcas2 == tcas3);
      assertNotNull(cas1.getTypeSystem().getType("Test.ArrayType"));
      assertNotNull(tcas3.getTypeSystem().getType("Test.ArrayType"));
View Full Code Here

Examples of org.apache.uima.cas.impl.CASImpl.reinit()

      CAS tcas2 = CasCreationUtils.createCas(new TypeSystemDescription_impl(), null, null);
      CASImpl cas2 = ((CASImpl) tcas2).getBaseCAS();
      tcas2.setDocumentText("bar");

      // reinit
      cas2.reinit(ser);
      CAS tcas3 = cas2.getCurrentView();

      assertTrue(tcas2 == tcas3);
      assertNotNull(cas1.getTypeSystem().getType("NamedEntity"));
      assertNotNull(tcas3.getTypeSystem().getType("NamedEntity"));
View Full Code Here

Examples of org.ejbca.core.model.hardtoken.profiles.EIDProfile.reInit()

          newprofile =  new TurkishEIDProfile();             
        break;
     
      if(profiledata != null && profiledata instanceof EIDProfile){
        ((EIDProfile) profiledata).clone(newprofile);
        newprofile.reInit();
        profiledata = newprofile;
      }
     
     
      }
View Full Code Here

Examples of org.hornetq.core.filter.impl.FilterParser.ReInit()

         largeString = strBuffer.toString();
      }

      FilterParser parse = new FilterParser();
      SimpleStringReader reader = new SimpleStringReader(new SimpleString(largeString));
      parse.ReInit(reader);
      // the server would fail at doing this when HORNETQ-545 wasn't solved
      parse.getNextToken();
   }
   // Private -----------------------------------------------------------------------------------
View Full Code Here

Examples of org.netbeans.modules.openoffice.wizard.util.EditCookie.reInit()


                public void actionPerformed(ActionEvent actionevent)
                {
                    if(actionevent.getActionCommand().equals("OK"))
                    ec.reInit(p);
                    dialog.setVisible(false);
                    dialog.dispose();
                }

            });
View Full Code Here

Examples of org.opensolaris.opengrok.analysis.sh.ShXref.reInit()

        // Reuse the xref and verify that the broken syntax in the previous
        // file doesn't cause broken highlighting in the next file
        out = new StringWriter();
        String contents = "echo \"hello\"";
        xref.reInit(contents.toCharArray(), contents.length());
        xref.write(out);
        assertEquals(
                FIRST_LINE_PREAMBLE +
                    "<b>echo</b> <span class=\"s\">\"hello\"</span>",
                out.toString());
View Full Code Here

Examples of org.pentaho.platform.plugin.action.mondrian.catalog.IMondrianCatalogService.reInit()

      IPentahoSession pentahoSession = PentahoSessionHolder.getSession();
      if ( SecurityHelper.getInstance().isPentahoAdministrator( pentahoSession ) ) {
        // Flush the catalog helper (legacy)
        IMondrianCatalogService mondrianCatalogService =
            PentahoSystem.get( IMondrianCatalogService.class, "IMondrianCatalogService", pentahoSession ); //$NON-NLS-1$
        mondrianCatalogService.reInit( pentahoSession );
        // Flush the IOlapService
        IOlapService olapService =
          PentahoSystem.get( IOlapService.class, "IOlapService", pentahoSession ); //$NON-NLS-1$
        olapService.flushAll( pentahoSession );
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.