public static enum AutoLFInputStream.StreamFlag extends Enum<AutoLFInputStream.StreamFlag>
Enum Constant and Description |
---|
ABORT_IF_BINARY
If
DETECT_BINARY is set, throw an AutoLFInputStream.IsBinaryException
if binary content is detected. |
DETECT_BINARY
Check the first 8kB for binary content and switch off
canonicalization off for the whole file if so.
|
FOR_CHECKOUT
If
DETECT_BINARY is set and content is found to be CR-LF
delimited text, switch off canonicalization. |
Modifier and Type | Method and Description |
---|---|
static AutoLFInputStream.StreamFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AutoLFInputStream.StreamFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AutoLFInputStream.StreamFlag DETECT_BINARY
public static final AutoLFInputStream.StreamFlag ABORT_IF_BINARY
DETECT_BINARY
is set, throw an AutoLFInputStream.IsBinaryException
if binary content is detected.public static final AutoLFInputStream.StreamFlag FOR_CHECKOUT
DETECT_BINARY
is set and content is found to be CR-LF
delimited text, switch off canonicalization.public static AutoLFInputStream.StreamFlag[] values()
for (AutoLFInputStream.StreamFlag c : AutoLFInputStream.StreamFlag.values()) System.out.println(c);
public static AutoLFInputStream.StreamFlag 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 nullCopyright © 2021 Eclipse JGit Project. All rights reserved.