Example usage for Java org.eclipse.jgit.diff RawText fields, constructors, methods, implement or subclass
The text is from its open source code.
RawText | EMPTY_TEXT A RawText of length 0 |
RawText(byte[] input) Create a new sequence from an existing content byte array. | |
RawText(File file) Create a new sequence from a file. |
String | getLineDelimiter() Get the line delimiter for the first line. |
String | getString(int i) Get the text for a single line. |
String | getString(int begin, int end, boolean dropLF) Get the text for a region of lines. |
boolean | isBinary(byte[] raw) Determine heuristically whether a byte array represents binary (as opposed to text) content. |
boolean | isBinary(InputStream raw) Determine heuristically whether the bytes contained in a stream represents binary (as opposed to text) content. |
boolean | isMissingNewlineAtEnd() Determine if the file ends with a LF ('\n'). |
int | size() |
void | writeLine(OutputStream out, int i) Write a specific line to the output stream, without its trailing LF. |