public enum ClipboardFormat extends Enum<ClipboardFormat>
| Enum Constant and Description |
|---|
SCHEMATIC
The Schematic format used by many software.
|
| Modifier and Type | Method and Description |
|---|---|
static ClipboardFormat |
findByAlias(String alias)
Find the clipboard format named by the given alias.
|
static ClipboardFormat |
findByFile(File file)
Detect the format given a file.
|
Set<String> |
getAliases()
Get a set of aliases.
|
abstract ClipboardReader |
getReader(InputStream inputStream)
Create a reader.
|
abstract ClipboardWriter |
getWriter(OutputStream outputStream)
Create a writer.
|
abstract boolean |
isFormat(File file)
Return whether the given file is of this format.
|
static ClipboardFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClipboardFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClipboardFormat SCHEMATIC
public static ClipboardFormat[] values()
for (ClipboardFormat c : ClipboardFormat.values()) System.out.println(c);
public static ClipboardFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract ClipboardReader getReader(InputStream inputStream) throws IOException
inputStream - the input streamIOException - thrown on I/O errorpublic abstract ClipboardWriter getWriter(OutputStream outputStream) throws IOException
outputStream - the output streamIOException - thrown on I/O errorpublic abstract boolean isFormat(File file)
file - the file@Nullable public static ClipboardFormat findByAlias(String alias)
alias - the alias@Nullable public static ClipboardFormat findByFile(File file)
file - the fileCopyright © 2010-2014. All Rights Reserved.