Examples of nextObject()


Examples of com.github.ghetolay.jwamp.message.WampArguments.nextObject()

 
  @Test(dependsOnMethods = {"connect"})
  public void callReturnOneList() throws IOException, UnsupportedWampActionException, TimeoutException, CallException{
    WampArguments msg = wamp.simpleCall("oneList");
   
    assertEquals("lol",   msg.nextObject(String.class));
    assertEquals("prout", msg.nextObject(String.class));
    assertEquals("youk",  msg.nextObject(String.class));
    assertNull(msg.nextObject());
  }
 
View Full Code Here

Examples of com.nexirius.util.SortedVector.nextObject()

    public void getAllMembers(ArrayModel members) {
        members.clear();
        SortedVector all = FilePersistence.getInstance().getAll(MemberModel.class);

        for (MemberModel m = (MemberModel) all.firstObject(); m != null; m = (MemberModel) all.nextObject()) {
            members.append(m);

            m.getPerson().setInstanceName(m.getPersonId());

            FilePersistence.getInstance().read(m.getPerson());
View Full Code Here

Examples of com.nexirius.util.SortedVector.nextObject()

    public void getAddressesForMember(MemberModel member) {
        member.getAddresses().clear();
        SortedVector all = FilePersistence.getInstance().getAll(AddressModel.class, ITeamPersistence.FOREIGN_KEY, member.getInstanceName());

        for (AddressModel am = (AddressModel) all.firstObject(); am != null; am = (AddressModel) all.nextObject()) {
            member.getAddresses().append(am);
        }
    }

    public void getPhonesForMember(MemberModel member) {
View Full Code Here

Examples of com.nexirius.util.SortedVector.nextObject()

    public void getPhonesForMember(MemberModel member) {
        member.getPhones().clear();
        SortedVector all = FilePersistence.getInstance().getAll(PhoneModel.class, ITeamPersistence.FOREIGN_KEY, member.getInstanceName());

        for (PhoneModel pm = (PhoneModel) all.firstObject(); pm != null; pm = (PhoneModel) all.nextObject()) {
            member.getPhones().append(pm);
        }
    }

    public void update(DataModel model) {
View Full Code Here

Examples of nz.ac.waikato.jdsl.core.api.ObjectIterator.nextObject()

    // If no cycle is found, the Sequence will be empty and the cycle
    // Iterator will be empty
    Sequence theCycle = new NodeSequence();
    ObjectIterator pathVerts = prospectiveCycle_.elements();
    while (pathVerts.hasNext()) {
      Vertex v = (Vertex)pathVerts.nextObject();
      theCycle.insertFirst(v);
      if (v == cycleStart_) {
  break;
      }
    }
View Full Code Here

Examples of nz.ac.waikato.jdsl.core.api.ObjectIterator.nextObject()

    // If no cycle is found, the Sequence will be empty and the cycle
    // Iterator will be empty
    Sequence theCycle = new NodeSequence();
    ObjectIterator pathVerts = prospectiveCycle_.elements();
    while (pathVerts.hasNext()) {
      Vertex v = (Vertex)pathVerts.nextObject();
      theCycle.insertFirst(v);
      if (v == cycleStart_) {
  break;
      }
    }
View Full Code Here

Examples of org.bouncycastle.openpgp.PGPObjectFactory.nextObject()

    private static PGPPrivateKey findPrivateKey(InputStream keyringInput, InputStream encryptedInput, String passphrase) throws IOException,
            PGPException, NoSuchProviderException {
        PGPSecretKeyRingCollection pgpSec = new PGPSecretKeyRingCollection(PGPUtil.getDecoderStream(keyringInput));
        PGPObjectFactory factory = new PGPObjectFactory(PGPUtil.getDecoderStream(encryptedInput));
        PGPEncryptedDataList enc;
        Object o = factory.nextObject();
        if (o instanceof PGPEncryptedDataList) {
            enc = (PGPEncryptedDataList) o;
        } else {
            enc = (PGPEncryptedDataList) factory.nextObject();
        }
View Full Code Here

Examples of org.bouncycastle.openpgp.PGPObjectFactory.nextObject()

        PGPEncryptedDataList enc;
        Object o = factory.nextObject();
        if (o instanceof PGPEncryptedDataList) {
            enc = (PGPEncryptedDataList) o;
        } else {
            enc = (PGPEncryptedDataList) factory.nextObject();
        }
        encryptedInput.reset(); // nextObject() method reads from the InputStream, so rewind it!
        Iterator<?> encryptedDataObjects = enc.getEncryptedDataObjects();
        PGPPrivateKey privateKey = null;
        PGPPublicKeyEncryptedData encryptedData;
View Full Code Here

Examples of org.bouncycastle.openpgp.PGPObjectFactory.nextObject()

        } finally {
            IOUtils.closeQuietly(encryptedStream);
        }

        PGPObjectFactory pgpFactory = new PGPObjectFactory(in);
        Object o = pgpFactory.nextObject();

        // the first object might be a PGP marker packet
        PGPEncryptedDataList enc;
        if (o instanceof PGPEncryptedDataList) {
            enc = (PGPEncryptedDataList) o;
View Full Code Here

Examples of org.bouncycastle.openpgp.PGPObjectFactory.nextObject()

        // the first object might be a PGP marker packet
        PGPEncryptedDataList enc;
        if (o instanceof PGPEncryptedDataList) {
            enc = (PGPEncryptedDataList) o;
        } else {
            enc = (PGPEncryptedDataList) pgpFactory.nextObject();
        }
        IOHelper.close(in);

        PGPPublicKeyEncryptedData pbe = (PGPPublicKeyEncryptedData) enc.get(0);
        InputStream encData = pbe.getDataStream(key, "BC");
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.