Class Text

java.lang.Object
org.eclipse.jgit.diff.Sequence
org.eclipse.jgit.diff.RawText
com.google.gerrit.server.patch.Text

public class Text extends org.eclipse.jgit.diff.RawText
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Text
     
    static final byte[]
     

    Fields inherited from class org.eclipse.jgit.diff.RawText

    content, EMPTY_TEXT, lines
  • Constructor Summary

    Constructors
    Constructor
    Description
    Text(byte[] r)
     
    Text(org.eclipse.jgit.lib.ObjectLoader ldr)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static byte[]
    asByteArray(org.eclipse.jgit.lib.ObjectLoader ldr)
     
    protected String
    decode(int s, int e)
     
    static Text
    forCommit(org.eclipse.jgit.lib.ObjectReader reader, org.eclipse.jgit.lib.AnyObjectId commitId)
     
    static Text
    forMergeList(ComparisonType comparisonType, org.eclipse.jgit.lib.ObjectReader reader, org.eclipse.jgit.lib.AnyObjectId commitId)
     
    byte[]
     

    Methods inherited from class org.eclipse.jgit.diff.RawText

    getBufferSize, getLineDelimiter, getRawContent, getRawString, getString, getString, isBinary, isBinary, isBinary, isBinary, isBinary, isCrLfText, isCrLfText, isCrLfText, isCrLfText, isMissingNewlineAtEnd, load, setBufferSize, size, writeLine

    Methods inherited from class java.lang.Object

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

    • NO_BYTES

      public static final byte[] NO_BYTES
    • EMPTY

      public static final Text EMPTY
  • Constructor Details

    • Text

      public Text(byte[] r)
    • Text

      public Text(org.eclipse.jgit.lib.ObjectLoader ldr) throws org.eclipse.jgit.errors.MissingObjectException, org.eclipse.jgit.errors.LargeObjectException, IOException
      Throws:
      org.eclipse.jgit.errors.MissingObjectException
      org.eclipse.jgit.errors.LargeObjectException
      IOException
  • Method Details

    • forCommit

      public static Text forCommit(org.eclipse.jgit.lib.ObjectReader reader, org.eclipse.jgit.lib.AnyObjectId commitId) throws IOException
      Throws:
      IOException
    • forMergeList

      public static Text forMergeList(ComparisonType comparisonType, org.eclipse.jgit.lib.ObjectReader reader, org.eclipse.jgit.lib.AnyObjectId commitId) throws IOException
      Throws:
      IOException
    • asByteArray

      public static byte[] asByteArray(org.eclipse.jgit.lib.ObjectLoader ldr) throws org.eclipse.jgit.errors.MissingObjectException, org.eclipse.jgit.errors.LargeObjectException, IOException
      Throws:
      org.eclipse.jgit.errors.MissingObjectException
      org.eclipse.jgit.errors.LargeObjectException
      IOException
    • getContent

      public byte[] getContent()
    • decode

      protected String decode(int s, int e)
      Overrides:
      decode in class org.eclipse.jgit.diff.RawText