public static class PlatformResourceURIHandlerImpl.WorkbenchHelper
extends java.lang.Object
| Constructor and Description |
|---|
WorkbenchHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.lang.String,?> |
attributes(java.lang.String platformResourcePath,
java.util.Map<?,?> options) |
static java.io.InputStream |
createPlatformResourceInputStream(java.lang.String platformResourcePath,
java.util.Map<?,?> options)
Creates an input stream for the given
IFile path. |
static java.io.OutputStream |
createPlatformResourceOutputStream(java.lang.String platformResourcePath,
java.util.Map<?,?> options)
Creates an output stream for the given
IFile path. |
static void |
delete(java.lang.String platformResourcePath,
java.util.Map<?,?> options) |
static boolean |
exists(java.lang.String platformResourcePath,
java.util.Map<?,?> options) |
static java.lang.String |
getCharset(java.lang.String platformResourcePath,
java.util.Map<?,?> options)
Returns the
character set for the file at the specified location. |
static IContentDescription |
getContentDescription(java.lang.String platformResourcePath,
java.util.Map<?,?> options) |
static java.lang.String |
getLineDelimiter(java.lang.String platformResourcePath,
java.util.Map<?,?> options)
Returns the project or workspace line delimiter preference for a new workspace file at the specified location.
|
static void |
updateAttributes(java.lang.String platformResourcePath,
java.util.Map<java.lang.String,?> attributes,
java.util.Map<?,?> options) |
public static java.io.OutputStream createPlatformResourceOutputStream(java.lang.String platformResourcePath,
java.util.Map<?,?> options)
throws java.io.IOException
IFile path.
This implementation uses a PlatformResourceURIHandlerImpl.PlatformResourceOutputStream.
java.io.IOException - if there is a problem obtaining an open output stream.IWorkspaceRoot#getFile(org.eclipse.core.runtime.IPath),
PlatformResourceURIHandlerImpl.PlatformResourceOutputStream,
IFile#setContents(InputStream, boolean, boolean, IProgressMonitor)public static java.io.InputStream createPlatformResourceInputStream(java.lang.String platformResourcePath,
java.util.Map<?,?> options)
throws java.io.IOException
IFile path.
This implementation uses IFile.getContents.
java.io.IOException - if there is a problem obtaining an open input stream.IWorkspaceRoot#getFile(org.eclipse.core.runtime.IPath),
IFile#getContents()public static void delete(java.lang.String platformResourcePath,
java.util.Map<?,?> options)
throws java.io.IOException
java.io.IOExceptionpublic static boolean exists(java.lang.String platformResourcePath,
java.util.Map<?,?> options)
public static java.util.Map<java.lang.String,?> attributes(java.lang.String platformResourcePath,
java.util.Map<?,?> options)
public static void updateAttributes(java.lang.String platformResourcePath,
java.util.Map<java.lang.String,?> attributes,
java.util.Map<?,?> options)
throws java.io.IOException
java.io.IOExceptionpublic static IContentDescription getContentDescription(java.lang.String platformResourcePath,
java.util.Map<?,?> options)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String getCharset(java.lang.String platformResourcePath,
java.util.Map<?,?> options)
throws java.io.IOException
character set for the file at the specified location.java.io.IOExceptionpublic static java.lang.String getLineDelimiter(java.lang.String platformResourcePath,
java.util.Map<?,?> options)
Copyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature