public class PatchFormat
extends java.lang.Object
PatchFormat is a class that formats/parses patch data to/from
 their textual and object model forms.| Constructor and Description | 
|---|
PatchFormat()  | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.String | 
format(PatchModel model)
Formats the given  
PatchModel to Unified-format patch text. | 
byte[] | 
formatByte(PatchModel model)  | 
java.lang.String | 
getEncoding()  | 
PatchModel | 
parse(byte[] source,
     boolean noFile)
Parses the given Unified-format patch text to a  
PatchModel. | 
PatchModel | 
parse(java.lang.String source)
Parses the given Unified-format patch text to a  
PatchModel. | 
void | 
setEncoding(java.lang.String charsetName)  | 
public void setEncoding(java.lang.String charsetName)
public java.lang.String getEncoding()
public byte[] formatByte(PatchModel model)
public java.lang.String format(PatchModel model)
PatchModel to Unified-format patch text.model - the patch model.public PatchModel parse(java.lang.String source) throws java.text.ParseException
PatchModel.source - the Unified-format patch text.java.text.ParseException - if the patch text contains syntax errors.public PatchModel parse(byte[] source, boolean noFile) throws java.text.ParseException
PatchModel.source - the Unified-format patch text.java.text.ParseException - if the patch text contains syntax errors.