jaxws/src/jdk.xml.bind/share/classes/com/sun/codemodel/internal/writer/FilterCodeWriter.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2016, 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 |
42 |
42 |
43 public FilterCodeWriter(CodeWriter core) { |
43 public FilterCodeWriter(CodeWriter core) { |
44 this.core = core; |
44 this.core = core; |
45 } |
45 } |
46 |
46 |
|
47 @Override |
47 public OutputStream openBinary( JPackage pkg, String fileName ) throws IOException { |
48 public OutputStream openBinary( JPackage pkg, String fileName ) throws IOException { |
48 return core.openBinary(pkg, fileName); |
49 return core.openBinary(pkg, fileName); |
49 } |
50 } |
50 |
51 |
|
52 @Override |
51 public Writer openSource( JPackage pkg, String fileName ) throws IOException { |
53 public Writer openSource( JPackage pkg, String fileName ) throws IOException { |
52 return core.openSource(pkg, fileName); |
54 return core.openSource(pkg, fileName); |
53 } |
55 } |
54 |
56 |
|
57 @Override |
55 public void close() throws IOException { |
58 public void close() throws IOException { |
56 core.close(); |
59 core.close(); |
57 } |
60 } |
58 } |
61 } |