Examples of writeTo()


Examples of org.glassfish.admin.rest.logviewer.CharSpool.writeTo()

        ResponseBuilder rp = Response.ok(new StreamingOutput() {

            @Override
            public void write(OutputStream out) throws IOException, WebApplicationException {
                Writer w = getWriter(out, gz);
                spool.writeTo(new LineEndNormalizingWriter(w));
                w.flush();
                w.close();
            }
        });
        UriBuilder uriBuilder = ui.getAbsolutePathBuilder();
View Full Code Here

Examples of org.glassfish.jersey.server.mvc.spi.ResolvedViewable.writeTo()

                        new ProcessingException(LocalizationMessages.TEMPLATE_NAME_COULD_NOT_BE_RESOLVED(viewable.getTemplateName())),
                        Response.Status.NOT_FOUND);
            }

            httpHeaders.putSingle(HttpHeaders.CONTENT_TYPE, resolvedViewable.getMediaType());
            resolvedViewable.writeTo(entityStream);
        } catch (ViewableContextException vce) {
            throw new NotFoundException(vce);
        }
    }
View Full Code Here

Examples of org.globus.gsi.OpenSSLKey.writeTo()

        final String pubKeyPEM =
                certToPEMString(Base64.encode(cert.getEncoded()));

        final OpenSSLKey k = new BouncyCastleOpenSSLKey(keyPair.getPrivate());
        final StringWriter writer = new StringWriter();
        k.writeTo(writer);
        final String privKeyPEM = writer.toString();

        final FileWriter pubFile = new FileWriter(pubpath);
        final FileWriter privFile = new FileWriter(privpath);
View Full Code Here

Examples of org.globus.gsi.bc.BouncyCastleOpenSSLKey.writeTo()

        final String pubKeyPEM =
                certToPEMString(Base64.encode(cert.getEncoded()));

        final OpenSSLKey k = new BouncyCastleOpenSSLKey(keyPair.getPrivate());
        final StringWriter writer = new StringWriter();
        k.writeTo(writer);
        final String privKeyPEM = writer.toString();

        final FileWriter pubFile = new FileWriter(pubpath);
        final FileWriter privFile = new FileWriter(privpath);
View Full Code Here

Examples of org.gradle.api.java.archives.Manifest.writeTo()

                    public void execute(OutputStream outputStream) {
                        Manifest manifest = getManifest();
                        if (manifest == null) {
                            manifest = new DefaultManifest(null);
                        }
                        manifest.writeTo(new OutputStreamWriter(outputStream));
                    }

                });
                return new FileTreeAdapter(manifestSource);
            }
View Full Code Here

Examples of org.gradle.api.publish.maven.internal.tasks.MavenPomFileGenerator.writeTo()

            pomGenerator.addRuntimeDependency(runtimeDependency);
        }

        pomGenerator.withXml(pomInternal.getXmlAction());

        pomGenerator.writeTo(getDestination());
    }

}
View Full Code Here

Examples of org.grails.buffer.StreamByteBuffer.writeTo()

    }

    public void testWriteTo() throws IOException {
        StreamByteBuffer byteBuffer = createTestInstance();
        ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(byteBuffer.totalBytesUnread());
        byteBuffer.writeTo(bytesOut);
        byte[] result = bytesOut.toByteArray();
        assertTrue(Arrays.equals(testbuffer, result));
    }

    public void testToInputStreamOneByOne() throws IOException {
View Full Code Here

Examples of org.h2.test.utils.OutputCatcher.writeTo()

     */
    public static void main(String... args) throws Exception {
        OutputCatcher catcher = OutputCatcher.start();
        run(args);
        catcher.stop();
        catcher.writeTo("Test Output", "docs/html/testOutput.html");
    }

    private static void run(String... args) throws Exception {
        SelfDestructor.startCountdown(3 * 60);
        long time = System.currentTimeMillis();
View Full Code Here

Examples of org.hsqldb.lib.HsqlByteArrayOutputStream.writeTo()

        dataOutput = new DataOutputStream(httpConnection.getOutputStream());

        dataOutput.writeInt(r.getDatabaseId());
        dataOutput.writeLong(r.getSessionId());
        memStream.writeTo(dataOutput);
        dataOutput.flush();
    }

    protected Result read() throws IOException, HsqlException {
View Full Code Here

Examples of org.infinispan.protostream.UnknownFieldSet.writeTo()

      }
      if (value instanceof Message) {
         UnknownFieldSet unknownFieldSet = ((Message) value).getUnknownFieldSet();
         if (unknownFieldSet != null) {
            // TODO check that the unknown field set does not contains fields that have already been written or fields that are actually known already
            unknownFieldSet.writeTo(messageContext.out);
         }
      }
   }

   private void resetContext() {
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.