- All Implemented Interfaces:
ITypedElement that can be used as
an input to a compare viewer or other places where an
Clients may instantiate this class; it is not intended to be subclassed.
- This class is not intended to be subclassed by clients.
Method SummaryModifier and TypeMethodDescriptionReturns the name of a charset encoding to be used when decoding this stream accessor's contents into characters.Returns an open
InputStreamfor this object which can be used to retrieve the object's content.
getImage()Returns an image for this object.
longReturns the modification time of this object.
getName()Returns the name of this object.Returns the corresponding resource for this object or
getType()Returns the type of this object.
HistoryItemobject which combines the given
ITypedElementinto an object which is suitable as input for a compare viewer or
base- the implementation of the
ITypedElementinterface delegates to this base
IFileStatefrom which the streamable contents and the modification time is derived from
getNamepublic String getName()Returns the name of this object. The name is used when displaying this object in the UI.
getImagepublic Image getImage()Returns an image for this object. This image is used when displaying this object in the UI.
getTypepublic String getType()Returns the type of this object. For objects with a file name this is typically the file extension. For folders its the constant
FOLDER_TYPE. The type is used for determining a suitable viewer for this object.
getModificationDatepublic long getModificationDate()Description copied from interface:
IModificationDateReturns the modification time of this object.
Note that this value should only be used to give the user a general idea of how old the object is.
getContentsDescription copied from interface:
IStreamContentAccessorReturns an open
InputStreamfor this object which can be used to retrieve the object's content. The client is responsible for closing the stream when finished. Returns
nullif this object has no streamable contents.
getCharsetDescription copied from interface:
IEncodedStreamContentAccessorReturns the name of a charset encoding to be used when decoding this stream accessor's contents into characters. Returns
nullif a proper encoding cannot be determined.
Note: this method does not check whether the result is a supported charset name. Callers should be prepared to handle
UnsupportedEncodingExceptionwhere this charset is used.
getResourcepublic IResource getResource()Description copied from interface:
IResourceProviderReturns the corresponding resource for this object or