public final class EolStreamTypeUtil extends Object
CoreConfig.EolStreamType| Modifier and Type | Method and Description |
|---|---|
static CoreConfig.EolStreamType |
detectStreamType(TreeWalk.OperationType op,
WorkingTreeOptions options,
Attributes attrs)
Convenience method used to detect if CRLF conversion has been configured
using the
global repo options
global attributes
info attributes
working tree .gitattributes
|
static InputStream |
wrapInputStream(InputStream in,
CoreConfig.EolStreamType conversion) |
static OutputStream |
wrapOutputStream(OutputStream out,
CoreConfig.EolStreamType conversion) |
public static CoreConfig.EolStreamType detectStreamType(TreeWalk.OperationType op, WorkingTreeOptions options, Attributes attrs)
op - is the TreeWalk.OperationType of the current traversaloptions - are the Config options with key
WorkingTreeOptions.KEYattrs - are the Attributes of the file for which the
CoreConfig.EolStreamType is to be detectedCoreConfig.EolStreamType to be performed for
the selected TreeWalk.OperationTypepublic static InputStream wrapInputStream(InputStream in, CoreConfig.EolStreamType conversion)
in - original streamconversion - to be performedCoreConfig.EolStreamTypepublic static OutputStream wrapOutputStream(OutputStream out, CoreConfig.EolStreamType conversion)
out - original streamconversion - to be performedCoreConfig.EolStreamTypeCopyright © 2017 Eclipse JGit Project. All rights reserved.