Examples of writeTo()


Examples of org.jbox2d.serialization.SerializationResult.writeTo()

      return;
    }

    try {
      FileOutputStream fos = new FileOutputStream(currTest.getFilename());
      result.writeTo(fos);
      fos.flush();
      fos.close();
    } catch (FileNotFoundException e) {
      log.error("File not found exception while saving", e);
      if (errorHandler != null)
View Full Code Here

Examples of org.jf.baksmali.Adaptors.ClassDefinition.writeTo()

            BufferedWriter bufWriter = new BufferedWriter(new OutputStreamWriter(
                    new FileOutputStream(smaliFile), "UTF8"));

            writer = new IndentingWriter(bufWriter);
            classDefinition.writeTo((IndentingWriter)writer);
        } catch (Exception ex) {
            System.err.println("\n\nError occurred while disassembling class " + classDescriptor.replace('/', '.') + " - skipping class");
            ex.printStackTrace();
            // noinspection ResultOfMethodCallIgnored
            smaliFile.delete();
View Full Code Here

Examples of org.jf.dexlib2.analysis.RegisterType.writeTo()

        for (; registerNum >= 0; registerNum = registers.nextSetBit(registerNum + 1)) {
            RegisterType registerType = analyzedInstruction.getPostInstructionRegisterType(registerNum);

            registerFormatter.writeTo(writer, registerNum);
            writer.write('=');
            registerType.writeTo(writer);
            writer.write(';');
        }
        return true;
    }
}
View Full Code Here

Examples of org.jf.dexlib2.writer.builder.DexBuilder.writeTo()

                                0,
                                ImmutableSet.<Annotation>of(),
                                methodBuilder.getMethodImplementation())));

        MemoryDataStore dexStore = new MemoryDataStore();
        dexBuilder.writeTo(dexStore);

        DexBackedDexFile dexFile = new DexBackedDexFile(new Opcodes(15), dexStore.getData());

        ClassDef classDef = Iterables.getFirst(dexFile.getClasses(), null);
        Assert.assertNotNull(classDef);
View Full Code Here

Examples of org.jgroups.Message.writeTo()

            ExposedByteArrayOutputStream msg_data=new ExposedByteArrayOutputStream();
            Buffer jgbuf;

            if(use_streamable) {
                DataOutputStream dos=new DataOutputStream(msg_data);
                m.writeTo(dos);
                dos.close();
            }
            else {
                ObjectOutputStream msg_out=use_magic? new MagicObjectOutputStream(msg_data) : new ObjectOutputStream(msg_data);
                m.writeExternal(msg_out);
View Full Code Here

Examples of org.jgroups.stack.IpAddress.writeTo()

        ByteArrayInputStream  bis=null;
        DataInputStream       dis;

        System.out.println("-- address is " + tmp);

        ip.writeTo(dos);
        buf=bos.toByteArray();
        bis=new ByteArrayInputStream(buf);
        dis=new DataInputStream(bis);
        IpAddress ip2=new IpAddress();
        ip2.readFrom(dis);
View Full Code Here

Examples of org.jitterbit.integration.data.structure.ldap.LdapSearchParametersPersistor.writeTo()

        LdapSearchParametersPersistor writer = new LdapSearchParametersPersistor();
        for (Map.Entry<NumericOid, LdapSearchParameters> e : searchParams.entrySet()) {
            Persistor p = media.createChild("SearchParams");
            p.putString("oid", e.getKey().toString());
            Persistor data = p.createChild("Data");
            writer.writeTo(e.getValue(), data);
        }
    }

    @Override
    public void restoreFrom(Persistor p) {
View Full Code Here

Examples of org.jitterbit.integration.data.structure.ldap.LdapStructureEntryPersistor.writeTo()

    }

    private void persistEntries(Persistor media) {
        LdapStructureEntryPersistor p = new LdapStructureEntryPersistor();
        for (LdapStructureEntry e : entries) {
            p.writeTo(e, media.createChild("LdapStructureEntry"));
        }
    }

    private void persistSearchParams(Persistor media) {
        LdapSearchParametersPersistor writer = new LdapSearchParametersPersistor();
View Full Code Here

Examples of org.jitterbit.integration.data.structure.text.FieldDelimiter.writeTo()

    @Override
    protected void writeAdditionalData(Persistor p) {
        FieldDelimiter delim = getDelimiter();
        if (delim != null) {
            delim.writeTo(p.createChild("Delimiter"));
        }
        if (isFixedField()) {
            new PatchForBug1969251(this).apply();
        }
        textStructure.writeTo(p.createChild("Structure"));
View Full Code Here

Examples of org.jnode.assembler.x86.X86BinaryAssembler.writeTo()

        } else {
            testCode64(os);
        }

        FileOutputStream fos = new FileOutputStream("test.bin");
        os.writeTo(fos);
        fos.close();
    }

    private static void testCode64(X86Assembler os) throws UnresolvedObjectRefException {
        os.writeCDQE();
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.