|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Interface that represents a hunk. A hunk is a portion of a patch. It
identifies where the hunk is to be located in the target file. One use of
this interface is a means to communicate to content merge viewers that one of
the sides of a compare input is a patch hunk. Clients can determine which
side it is by adapting the side to this interface (see IAdaptable.
This interface is not intended to be implemented by clients but can be
obtained from an IFilePatchResult
| Method Summary | |
|---|---|
String |
getCharset()
Returns the name of a charset encoding to be used when decoding the contents of this hunk into characters. |
String |
getLabel()
Return a label that can be used to describe the hunk. |
InputStream |
getOriginalContents()
Return the original contents from which the hunk was generated. |
InputStream |
getPatchedContents()
Return the contents that contain the modifications for this hunk. |
int |
getStartPosition()
Return the start position of the hunk in the target file. |
| Method Detail |
public String getLabel()
public int getStartPosition()
public InputStream getOriginalContents()
public InputStream getPatchedContents()
public String getCharset()
throws CoreException
null if a proper
encoding cannot be determined.
Note that this method does not check whether the result is a supported
charset name. Callers should be prepared to handle
UnsupportedEncodingException where this charset is used.
null
CoreException - if an error happens while determining
the charset. See any refinements for more information.IEncodedStorage
|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.