Examples of IOContext


Examples of com.asakusafw.compiler.flow.ExternalIoDescriptionProcessor.IoContext

            List<Import> importGroup = entry.getValue();
            List<Export> exportGroup = exports.get(proc);
            assert exportGroup != null;
            assert importGroup.isEmpty() == false || exportGroup.isEmpty() == false;

            IoContext context = createEmitContext(proc, importGroup, exportGroup);

            LOG.debug("{}によって外部入出力の記述を生成しています", proc.getClass().getName());
            proc.emitPackage(context);

            LOG.debug("{}によってインポーターの記述を生成しています", proc.getClass().getName());
View Full Code Here

Examples of com.asakusafw.compiler.flow.ExternalIoDescriptionProcessor.IoContext

            for (Source source : model.getResolvedSources()) {
                sources.add(source.getInputInfo());
            }
            outputs.add(new Output(model.getDescription(), sources));
        }
        IoContext context = new IoContext(inputs, outputs);
        return context;
    }
View Full Code Here

Examples of com.fasterxml.jackson.core.io.IOContext

     */
    @Override
    public CsvGenerator createJsonGenerator(OutputStream out) throws IOException
    {
        // false -> we won't manage the stream unless explicitly directed to
        IOContext ctxt = _createContext(out, false);
        return _createJsonGenerator(ctxt, _createWriter(out, JsonEncoding.UTF8, ctxt));
    }
View Full Code Here

Examples of com.fasterxml.jackson.core.io.IOContext

    @SuppressWarnings("resource")
    @Override
    public CsvGenerator createGenerator(OutputStream out, JsonEncoding enc) throws IOException
    {
        // false -> we won't manage the stream unless explicitly directed to
        IOContext ctxt = _createContext(out, false);
        // [JACKSON-512]: allow wrapping with _outputDecorator
        if (_outputDecorator != null) {
            out = _outputDecorator.decorate(ctxt, out);
        }
        return _createGenerator(ctxt, _createWriter(out, JsonEncoding.UTF8, ctxt));
View Full Code Here

Examples of com.fasterxml.jackson.core.io.IOContext

    @SuppressWarnings("resource")
    @Override
    public CsvGenerator createGenerator(Writer out) throws IOException
    {
        IOContext ctxt = _createContext(out, false);
        // [JACKSON-512]: allow wrapping with _outputDecorator
        if (_outputDecorator != null) {
            out = _outputDecorator.decorate(ctxt, out);
        }
        return _createGenerator(out, ctxt);
View Full Code Here

Examples of com.fasterxml.jackson.core.io.IOContext

   
    @Override
    public AvroParser createParser(byte[] data)
        throws IOException, JsonParseException
    {
        IOContext ctxt = _createContext(data, true);
        return _createParser(data, 0, data.length, ctxt);
    }
View Full Code Here

Examples of com.fasterxml.jackson.core.io.IOContext

     */
    @Override
    public AvroGenerator createGenerator(OutputStream out) throws IOException
    {
        // false -> we won't manage the stream unless explicitly directed to
        IOContext ctxt = _createContext(out, false);
        return _createGenerator(out, ctxt);
    }
View Full Code Here

Examples of com.fasterxml.jackson.core.io.IOContext

    @Override
    public ToXmlGenerator createGenerator(File f, JsonEncoding enc) throws IOException
    {
        OutputStream out = new FileOutputStream(f);
        // true -> yes, we have to manage the stream since we created it
        IOContext ctxt = _createContext(out, true);
        ctxt.setEncoding(enc);
        return new ToXmlGenerator(ctxt, _generatorFeatures, _xmlGeneratorFeatures,
                _objectCodec, _createXmlWriter(out));
    }
View Full Code Here

Examples of org.apache.geronimo.messaging.io.IOContext

        streamManager = newStreamManager();
        referenceableManager = newReferenceableManager();
        endPointProxyFactory = newEndPointProxyFactory();
       
        compression = new LogicalCompression();
        IOContext ioContext = new IOContext();
        ioContext.setPopSynchronization(compression);
        ioContext.setPushSynchronization(compression);
        ioContext.setReplacerResolver(replacerResolver);
        ioContext.setStreamManager(streamManager);
       
        nodeManager = new RemoteNodeManagerImpl(aNodeInfo, ioContext,
            aClockPool, aFactory);
        nodeManager.addListener(new RemoteNodeTracker());
       
View Full Code Here

Examples of org.apache.geronimo.twiddle.console.IOContext

     * Construct a <code>Twiddle</code> command processor using system
     * defaults for the input/output context.
     */
    public Twiddle(final ClassWorld world)
    {
        this(new IOContext(System.in, System.out, System.err), world);
    }
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.