src/share/classes/java/awt/datatransfer/SystemFlavorMap.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2012, 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, 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
*** 179,188 **** --- 179,189 ---- */ private Set disabledMappingGenerationKeys = new HashSet(); /** * Returns the default FlavorMap for this thread's ClassLoader. + * @return the default FlavorMap for this thread's ClassLoader */ public static FlavorMap getDefaultFlavorMap() { ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); if (contextClassLoader == null) {
*** 1307,1316 **** --- 1308,1319 ---- * <code>DataFlavor</code>. * * @param nat the <code>String</code> to decode * @return the decoded <code>DataFlavor</code>, or <code>null</code> if * nat is not an encoded <code>String</code> native + * @throws ClassNotFoundException if the class of the data flavor + * is not loaded */ public static DataFlavor decodeDataFlavor(String nat) throws ClassNotFoundException { String retval_str = SystemFlavorMap.decodeJavaMIMEType(nat);