< prev index next >

src/java.desktop/share/classes/javax/swing/text/ChangedCharSetException.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1998, 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) 1998, 2015, 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
*** 36,54 **** --- 36,67 ---- public class ChangedCharSetException extends IOException { String charSetSpec; boolean charSetKey; + /** + * Constructs a {@code ChangedCharSetException}. + * @param charSetSpec name of the char set specification + * @param charSetKey char set key + */ public ChangedCharSetException(String charSetSpec, boolean charSetKey) { this.charSetSpec = charSetSpec; this.charSetKey = charSetKey; } + /** + * Returns the char set specification. + * @return the char set specification + */ public String getCharSetSpec() { return charSetSpec; } + /** + * Returns the char set key. + * @return the char set key + */ public boolean keyEqualsCharSet() { return charSetKey; } }
< prev index next >