< prev index next >

src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/JAXMStreamSource.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 63,80 **** if (lazyContentLength) { this.reader = rdr; return; } ! CharWriter cout = new CharWriter(); char[] temp = new char[1024]; int len; while (-1 != (len = rdr.read(temp))) cout.write(temp, 0, len); ! this.reader = new CharReader(cout.getChars(), cout.getCount()); } public InputStream getInputStream() { return in; } --- 63,80 ---- if (lazyContentLength) { this.reader = rdr; return; } ! CharArrayWriter cout = new CharArrayWriter(); char[] temp = new char[1024]; int len; while (-1 != (len = rdr.read(temp))) cout.write(temp, 0, len); ! this.reader = new CharArrayReader(cout.toCharArray(), 0, cout.size()); } public InputStream getInputStream() { return in; }
< prev index next >