Package org.jibx.runtime.impl

Examples of org.jibx.runtime.impl.OutByteBuffer


        logger.debug("Entered WsServletDelegate.doPost()");
        Service serv = null;
        XmlCodec incodec = null;
        XmlCodec outcodec = null;
        InByteBuffer inbuff = null;
        OutByteBuffer outbuff = null;
        try {
            // make sure we have a service instance
            serv = m_serviceMapper.getServiceInstance(req);
            if (serv == null) {
                rsp.sendError(HttpServletResponse.SC_NOT_FOUND);
View Full Code Here


     * @throws IOException
     */
    private void setupOutput(MessageProperties msgProps) throws IOException {
        if (m_dimeOutput == null) {
            m_dimeOutput = new DimeOutputBuffer();
            OutByteBuffer obuff = new OutByteBuffer();
            m_dimeOutput.setBuffer(obuff);
            obuff.setOutput(m_socket.getOutputStream());
        }
        MediaType type = msgProps.getContentType();
        int typecode = type == null ? DimeCommon.TYPE_NONE : DimeCommon.TYPE_MEDIA;
        m_dimeOutput.nextMessage();
        m_dimeOutput.nextPart(null, typecode, type == null ? null : type.toString());
View Full Code Here

        m_dimeInput = new DimeInputBuffer();
        InByteBuffer ibuff = new InByteBuffer();
        m_dimeInput.setBuffer(ibuff);
        ibuff.setInput(socket.getInputStream());
        m_dimeOutput = new DimeOutputBuffer();
        OutByteBuffer obuff = new OutByteBuffer();
        obuff.setOutput(socket.getOutputStream());
        m_dimeOutput.setBuffer(obuff);
        m_codecCache = new CodecCache();
    }
View Full Code Here

     */
  public IXMLWriter getNormalWriter(String[] uris) throws IOException {
      if (m_writer == null) {
          UTF8StreamWriter writer = new UTF8StreamWriter(uris);
            m_os = new ByteArrayOutputStream(BUFFER_SIZE);
            OutByteBuffer buff = new OutByteBuffer();
            buff.setOutput(m_os);
            writer.setBuffer(buff);
            initializeWriter(writer);
            m_writer = writer;
      }
        return m_writer;
View Full Code Here

     * Create new instance for pool.
     *
     * @return instance
     */
    protected Object createInstance() {
        return new OutByteBuffer(m_size);
    }
View Full Code Here

    /**
     * Set up for test. This creates a small byte buffer, to allow forcing multiple blocks in a record.
     */
    protected void setUp() throws Exception {
        m_dimeBuffer = new DimeOutputBuffer();
        m_streamBuffer = new OutByteBuffer(DimeCommon.HEADER_SIZE+DATA_SIZE);
        m_dimeBuffer.setBuffer(m_streamBuffer);
        m_outStream = new ByteArrayOutputStream();
        m_streamBuffer.setOutput(m_outStream);
        m_dimeBuffer.nextMessage();
        super.setUp();
View Full Code Here

     *
     * @throws Exception
     */
    protected void setUp() throws Exception {
        m_dimeOut = new DimeOutputBuffer();
        m_outBuffer = new OutByteBuffer(BUFFER_SIZE);
        m_dimeOut.setBuffer(m_outBuffer);
        m_outStream = new ByteArrayOutputStream();
        m_outBuffer.setOutput(m_outStream);
        m_dimeOut.nextMessage();
        super.setUp();
View Full Code Here

TOP

Related Classes of org.jibx.runtime.impl.OutByteBuffer

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.