Package com.cosium.code.format.git
Class AutoCRLFObjectLoader
- java.lang.Object
-
- org.eclipse.jgit.lib.ObjectLoader
-
- com.cosium.code.format.git.AutoCRLFObjectLoader
-
public class AutoCRLFObjectLoader extends org.eclipse.jgit.lib.ObjectLoader- Author:
- Réda Housni Alaoui
-
-
Constructor Summary
Constructors Constructor Description AutoCRLFObjectLoader(org.eclipse.jgit.lib.ObjectLoader delegate, org.eclipse.jgit.lib.CoreConfig.EolStreamType eolStreamType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyTo(OutputStream out)byte[]getCachedBytes()byte[]getCachedBytes(int sizeLimit)longgetSize()intgetType()booleanisLarge()org.eclipse.jgit.lib.ObjectStreamopenStream()
-
-
-
Method Detail
-
getType
public int getType()
- Specified by:
getTypein classorg.eclipse.jgit.lib.ObjectLoader
-
getSize
public long getSize()
- Specified by:
getSizein classorg.eclipse.jgit.lib.ObjectLoader
-
isLarge
public boolean isLarge()
- Overrides:
isLargein classorg.eclipse.jgit.lib.ObjectLoader
-
getCachedBytes
public byte[] getCachedBytes() throws org.eclipse.jgit.errors.LargeObjectException- Specified by:
getCachedBytesin classorg.eclipse.jgit.lib.ObjectLoader- Throws:
org.eclipse.jgit.errors.LargeObjectException
-
getCachedBytes
public byte[] getCachedBytes(int sizeLimit) throws org.eclipse.jgit.errors.LargeObjectException, org.eclipse.jgit.errors.MissingObjectException, IOException- Overrides:
getCachedBytesin classorg.eclipse.jgit.lib.ObjectLoader- Throws:
org.eclipse.jgit.errors.LargeObjectExceptionorg.eclipse.jgit.errors.MissingObjectExceptionIOException
-
openStream
public org.eclipse.jgit.lib.ObjectStream openStream() throws org.eclipse.jgit.errors.MissingObjectException, IOException- Specified by:
openStreamin classorg.eclipse.jgit.lib.ObjectLoader- Throws:
org.eclipse.jgit.errors.MissingObjectExceptionIOException
-
copyTo
public void copyTo(OutputStream out) throws org.eclipse.jgit.errors.MissingObjectException, IOException
- Overrides:
copyToin classorg.eclipse.jgit.lib.ObjectLoader- Throws:
org.eclipse.jgit.errors.MissingObjectExceptionIOException
-
-