jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/streaming/XMLStreamReaderFactory.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
192 * This could be any {@link XMLStreamReader} implementation, not just |
192 * This could be any {@link XMLStreamReader} implementation, not just |
193 * the ones that were created from this factory. So the implementation |
193 * the ones that were created from this factory. So the implementation |
194 * of this class needs to be aware of that. |
194 * of this class needs to be aware of that. |
195 */ |
195 */ |
196 public static void recycle(XMLStreamReader r) { |
196 public static void recycle(XMLStreamReader r) { |
|
197 /* the XMLStreamReaderFactory recycle becomes expenisve in the threadLocal get operation. |
197 get().doRecycle(r); |
198 get().doRecycle(r); |
198 if (r instanceof RecycleAware) { |
199 if (r instanceof RecycleAware) { |
199 ((RecycleAware)r).onRecycled(); |
200 ((RecycleAware)r).onRecycled(); |
200 } |
201 }*/ |
201 } |
202 } |
202 |
203 |
203 // implementations |
204 // implementations |
204 |
205 |
205 public abstract XMLStreamReader doCreate(String systemId, InputStream in, boolean rejectDTDs); |
206 public abstract XMLStreamReader doCreate(String systemId, InputStream in, boolean rejectDTDs); |