public enum ClipboardFormat extends java.lang.Enum<ClipboardFormat>
Enum Constant and Description |
---|
SCHEMATIC
The Schematic format used by many software.
|
Modifier and Type | Method and Description |
---|---|
static ClipboardFormat |
findByAlias(java.lang.String alias)
Find the clipboard format named by the given alias.
|
static ClipboardFormat |
findByFile(java.io.File file)
Detect the format given a file.
|
java.util.Set<java.lang.String> |
getAliases()
Get a set of aliases.
|
abstract ClipboardReader |
getReader(java.io.InputStream inputStream)
Create a reader.
|
abstract ClipboardWriter |
getWriter(java.io.OutputStream outputStream)
Create a writer.
|
abstract boolean |
isFormat(java.io.File file)
Return whether the given file is of this format.
|
static ClipboardFormat |
valueOf(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.util.Set<java.lang.String> getAliases()
public abstract ClipboardReader getReader(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- the input streamjava.io.IOException
- thrown on I/O errorpublic abstract ClipboardWriter getWriter(java.io.OutputStream outputStream) throws java.io.IOException
outputStream
- the output streamjava.io.IOException
- thrown on I/O errorpublic abstract boolean isFormat(java.io.File file)
file
- the file@Nullable public static ClipboardFormat findByAlias(java.lang.String alias)
alias
- the alias@Nullable public static ClipboardFormat findByFile(java.io.File file)
file
- the file