Package com.google.gerrit.server.patch
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
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static byte[]asByteArray(org.eclipse.jgit.lib.ObjectLoader ldr)protected Stringdecode(int s, int e)static TextforCommit(org.eclipse.jgit.lib.ObjectReader reader, org.eclipse.jgit.lib.AnyObjectId commitId)static TextforMergeList(ComparisonType comparisonType, org.eclipse.jgit.lib.ObjectReader reader, org.eclipse.jgit.lib.AnyObjectId commitId)byte[]getContent()
 
- 
- 
- 
Field Detail- 
NO_BYTESpublic static final byte[] NO_BYTES 
 - 
EMPTYpublic static final Text EMPTY 
 
- 
 - 
Constructor Detail- 
Textpublic Text(byte[] r) 
 - 
Textpublic 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 Detail- 
forCommitpublic static Text forCommit(org.eclipse.jgit.lib.ObjectReader reader, org.eclipse.jgit.lib.AnyObjectId commitId) throws IOException - Throws:
- IOException
 
 - 
forMergeListpublic static Text forMergeList(ComparisonType comparisonType, org.eclipse.jgit.lib.ObjectReader reader, org.eclipse.jgit.lib.AnyObjectId commitId) throws IOException - Throws:
- IOException
 
 - 
asByteArraypublic 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
 
 - 
getContentpublic byte[] getContent() 
 - 
decodeprotected String decode(int s, int e) - Overrides:
- decodein class- org.eclipse.jgit.diff.RawText
 
 
- 
 
-