Package com.mku.streams
Enum RandomAccessStream.SeekOrigin
- java.lang.Object
-
- java.lang.Enum<RandomAccessStream.SeekOrigin>
-
- com.mku.streams.RandomAccessStream.SeekOrigin
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RandomAccessStream.SeekOrigin>
- Enclosing class:
- RandomAccessStream
public static enum RandomAccessStream.SeekOrigin extends java.lang.Enum<RandomAccessStream.SeekOrigin>
Used to identify the start offset for seeking to a stream.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RandomAccessStream.SeekOrigin
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RandomAccessStream.SeekOrigin[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Begin
public static final RandomAccessStream.SeekOrigin Begin
Start from the beginning of the stream.
-
Current
public static final RandomAccessStream.SeekOrigin Current
Start from the current position of the stream.
-
End
public static final RandomAccessStream.SeekOrigin End
Start from the end of the stream.
-
-
Method Detail
-
values
public static RandomAccessStream.SeekOrigin[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RandomAccessStream.SeekOrigin c : RandomAccessStream.SeekOrigin.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RandomAccessStream.SeekOrigin valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-