1 /* |
1 /* |
2 * Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2013, 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 |
366 transferFlavors = emptyFlavors; |
366 transferFlavors = emptyFlavors; |
367 |
367 |
368 // if it's not set, set it... |
368 // if it's not set, set it... |
369 if (transferFlavors == emptyFlavors) |
369 if (transferFlavors == emptyFlavors) |
370 transferFlavors = getDataContentHandler().getTransferDataFlavors(); |
370 transferFlavors = getDataContentHandler().getTransferDataFlavors(); |
371 return transferFlavors; |
371 |
|
372 if (transferFlavors == emptyFlavors) |
|
373 return transferFlavors; |
|
374 else |
|
375 return transferFlavors.clone(); |
|
376 |
372 } |
377 } |
373 |
378 |
374 /** |
379 /** |
375 * Returns whether the specified data flavor is supported |
380 * Returns whether the specified data flavor is supported |
376 * for this object.<p> |
381 * for this object.<p> |