Package net.jxta.document

Examples of net.jxta.document.MimeMediaType


        String fileName = _configDir + "/" + pipeAdvFile;
        FileInputStream is = null;
        try {
            is = new FileInputStream(fileName);
            _ptPipeAdv = (PipeAdvertisement) AdvertisementFactory
                    .newAdvertisement(new MimeMediaType("text/xml"), is);
        } catch (java.io.IOException ex) {
            System.out.println("failed to read/parse " + "pipe advertisement"
                    + ex.getMessage());
        } finally {
            if (is != null) {
View Full Code Here


        MembershipService membership = group.getMembershipService();
        Authenticator auth = membership.apply(authCred);
            if(auth.isReadyForJoin()){
                Credential myCred = membership.join(auth);
                printOnLog("[===== Detalhes do Grupo =====]");
                StructuredTextDocument doc = (StructuredTextDocument)myCred.getDocument(new MimeMediaType("text/plain"));
                StringWriter out = new StringWriter();
                doc.sendToWriter(out);
               
                printOnLog(out.toString());
                printOnLog("[+]Nome do PEER: " + group.getPeerName() + " está online:-)\n");
View Full Code Here

TOP

Related Classes of net.jxta.document.MimeMediaType

Copyright © 2018 www.massapicom. 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.