Package org.apache.cxf.helpers

Examples of org.apache.cxf.helpers.LoadingByteArrayOutputStream.createInputStream()


                    }
                   
                    if (ins == null) {
                        LoadingByteArrayOutputStream out = new LoadingByteArrayOutputStream();
                        sch.write(out);
                        ins = out.createInputStream();
                    }
                    impl.setByteStream(ins);
                    return impl;
                }
            }
View Full Code Here


                    c.setMessageObserver(new MessageObserver() {
                        public void onMessage(Message message) {
                            LoadingByteArrayOutputStream bout = new LoadingByteArrayOutputStream();
                            try {
                                IOUtils.copy(message.getContent(InputStream.class), bout);
                                message.getExchange().put(InputStream.class, bout.createInputStream());
                                c.close(message);
                            } catch (IOException e) {
                                //ignore
                            }
                        }
View Full Code Here

                        }

                        schemaSourcesMap.put(sch.getSourceURI() + ":"
                                             + sch.getTargetNamespace(), out.toByteArray());
                       
                        Source source = new StreamSource(out.createInputStream(), sch.getSourceURI());
                        schemaSourcesMap2.put(sch.getSourceURI() + ":"
                                              + sch.getTargetNamespace(), source);
                    }
                }
View Full Code Here

                bout = new LoadingByteArrayOutputStream(1024);
                IOUtils.copy(is, bout);
                is.close();
                cache.put(uriStr, bout);
            }
            is = bout.createInputStream();
        } catch (MalformedURLException e) {
            // do nothing
        } catch (URISyntaxException e) {
            // do nothing
        }
View Full Code Here

                inbound.add(bytes);   
            }
            if (LOG.isLoggable(Level.FINE)) {
                LOG.fine("inbound: " + bos.toString());
            }
            ByteArrayInputStream bis = bos.createInputStream();
            message.setContent(InputStream.class, bis);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
View Full Code Here

                        }
                       
                        if (ins == null) {
                            LoadingByteArrayOutputStream out = new LoadingByteArrayOutputStream();
                            sch.write(out);
                            ins = out.createInputStream();
                        }
                        Document doc = XMLUtils.parse(ins);
                        try {
                            ins.close();
                        } catch (IOException ex) {
View Full Code Here

                    c.setMessageObserver(new MessageObserver() {
                        public void onMessage(Message message) {
                            LoadingByteArrayOutputStream bout = new LoadingByteArrayOutputStream();
                            try {
                                IOUtils.copy(message.getContent(InputStream.class), bout);
                                message.getExchange().put(InputStream.class, bout.createInputStream());
                                c.close(message);
                            } catch (IOException e) {
                                //ignore
                            }
                        }
View Full Code Here

                c.setMessageObserver(new MessageObserver() {
                    public void onMessage(Message message) {
                        LoadingByteArrayOutputStream bout = new LoadingByteArrayOutputStream();
                        try {
                            IOUtils.copy(message.getContent(InputStream.class), bout);
                            message.getExchange().put(InputStream.class, bout.createInputStream());
                            c.close(message);
                        } catch (IOException e) {
                            //ignore
                        }
                    }
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.