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
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jgit.lib.ObjectLoader

    org.eclipse.jgit.lib.ObjectLoader.Filter, org.eclipse.jgit.lib.ObjectLoader.SmallObject
  • Constructor Summary

    Constructors
    Constructor
    Description
    AutoCRLFObjectLoader(org.eclipse.jgit.lib.ObjectLoader delegate, org.eclipse.jgit.lib.CoreConfig.EolStreamType eolStreamType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    byte[]
     
    byte[]
    getCachedBytes(int sizeLimit)
     
    long
     
    int
     
    boolean
     
    org.eclipse.jgit.lib.ObjectStream
     

    Methods inherited from class org.eclipse.jgit.lib.ObjectLoader

    getBytes, getBytes

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AutoCRLFObjectLoader

      public AutoCRLFObjectLoader(org.eclipse.jgit.lib.ObjectLoader delegate, org.eclipse.jgit.lib.CoreConfig.EolStreamType eolStreamType)
  • Method Details

    • getType

      public int getType()
      Specified by:
      getType in class org.eclipse.jgit.lib.ObjectLoader
    • getSize

      public long getSize()
      Specified by:
      getSize in class org.eclipse.jgit.lib.ObjectLoader
    • isLarge

      public boolean isLarge()
      Overrides:
      isLarge in class org.eclipse.jgit.lib.ObjectLoader
    • getCachedBytes

      public byte[] getCachedBytes() throws org.eclipse.jgit.errors.LargeObjectException
      Specified by:
      getCachedBytes in class org.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:
      getCachedBytes in class org.eclipse.jgit.lib.ObjectLoader
      Throws:
      org.eclipse.jgit.errors.LargeObjectException
      org.eclipse.jgit.errors.MissingObjectException
      IOException
    • openStream

      public org.eclipse.jgit.lib.ObjectStream openStream() throws org.eclipse.jgit.errors.MissingObjectException, IOException
      Specified by:
      openStream in class org.eclipse.jgit.lib.ObjectLoader
      Throws:
      org.eclipse.jgit.errors.MissingObjectException
      IOException
    • copyTo

      public void copyTo(OutputStream out) throws org.eclipse.jgit.errors.MissingObjectException, IOException
      Overrides:
      copyTo in class org.eclipse.jgit.lib.ObjectLoader
      Throws:
      org.eclipse.jgit.errors.MissingObjectException
      IOException