Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.core.resources
Interface IEncodedStorage

All Superinterfaces:
IAdaptable, IStorage
All Known Subinterfaces:
IFile, IFileState

public interface IEncodedStorage
extends IStorage

A storage that knows how its contents are encoded.

The IEncodedStorage interface extends IStorage in order to provide access to the charset to be used when decoding its contents.

Clients may implement this interface.

Since:
3.0

Method Summary
  String getCharset ()
          Returns the name of a charset encoding to be used when decoding this storage's contents into characters.
 
Methods inherited from interface org.eclipse.core.resources. IStorage
getContents, getFullPath, getName, isReadOnly
 
Methods inherited from interface org.eclipse.core.runtime. IAdaptable
getAdapter
 

Method Detail

getCharset

String getCharset()
                  throws 
CoreException
Returns the name of a charset encoding to be used when decoding this storage's contents into characters. Returns 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.

Returns:
the name of a charset, or null
Throws:
CoreException - if an error happens while determining the charset. See any refinements for more information.
See Also:
IStorage.getContents()

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire