src/share/jaxws_classes/com/sun/xml/internal/ws/api/streaming/XMLStreamWriterFactory.java

changeset 1667
e716ed4b0efb
parent 1609
09b083e0759c
child 1620
6df7b161ae4a
equal deleted inserted replaced
1666:b344704b05a1 1667:e716ed4b0efb
1 /* 1 /*
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2018, 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
384 // no recycling 384 // no recycling
385 } 385 }
386 386
387 } 387 }
388 388
389 private static class HasEncodingWriter extends XMLStreamWriterFilter implements HasEncoding { 389 public static class HasEncodingWriter extends XMLStreamWriterFilter implements HasEncoding {
390 private final String encoding; 390 private final String encoding;
391 391
392 HasEncodingWriter(XMLStreamWriter writer, String encoding) { 392 HasEncodingWriter(XMLStreamWriter writer, String encoding) {
393 super(writer); 393 super(writer);
394 this.encoding = encoding; 394 this.encoding = encoding;
397 @Override 397 @Override
398 public String getEncoding() { 398 public String getEncoding() {
399 return encoding; 399 return encoding;
400 } 400 }
401 401
402 XMLStreamWriter getWriter() { 402 public XMLStreamWriter getWriter() {
403 return writer; 403 return writer;
404 } 404 }
405 } 405 }
406 } 406 }

mercurial