|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.ecore.resource.impl.URIHandlerImpl
org.eclipse.emf.ecore.resource.impl.FileURIHandlerImpl
public class FileURIHandlerImpl
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.emf.ecore.resource.URIHandler |
|---|
DEFAULT_HANDLERS |
| Constructor Summary | |
|---|---|
FileURIHandlerImpl()
Creates an instance. |
|
| Method Summary | |
|---|---|
boolean |
canHandle(URI uri)
This implementation always returns true; clients are generally expected to override this. |
java.io.InputStream |
createInputStream(URI uri,
java.util.Map<?,?> options)
Creates an input stream for the file path and returns it. |
java.io.OutputStream |
createOutputStream(URI uri,
java.util.Map<?,?> options)
Creates an output stream for the file path and returns it. |
void |
delete(URI uri,
java.util.Map<?,?> options)
Only HTTP connections support delete. |
boolean |
exists(URI uri,
java.util.Map<?,?> options)
If a stream can be created the file exists. |
java.util.Map<java.lang.String,?> |
getAttributes(URI uri,
java.util.Map<?,?> options)
Returns a map from String attributes to their corresponding values representing information about various aspects of the URI's state. |
void |
setAttributes(URI uri,
java.util.Map<java.lang.String,?> attributes,
java.util.Map<?,?> options)
Updates the map from String attributes to their corresponding values representing information about various aspects of the URI's state. |
| Methods inherited from class org.eclipse.emf.ecore.resource.impl.URIHandlerImpl |
|---|
contentDescription, getRequestedAttributes, getResponse, getURIConverter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileURIHandlerImpl()
| Method Detail |
|---|
public boolean canHandle(URI uri)
URIHandlerImpl
canHandle in interface URIHandlercanHandle in class URIHandlerImpluri - the URI to consider.
public java.io.OutputStream createOutputStream(URI uri,
java.util.Map<?,?> options)
throws java.io.IOException
This implementation allocates a FileOutputStream and creates subdirectories as necessary.
createOutputStream in interface URIHandlercreateOutputStream in class URIHandlerImpluri - the URI for which to create the output stream.options - a map of options to influence the kind of stream that is returned; unrecognized options are ignored and null is permitted.
java.io.IOException - if there is a problem obtaining an open output stream.URIConverter.createOutputStream(URI, Map)
public java.io.InputStream createInputStream(URI uri,
java.util.Map<?,?> options)
throws java.io.IOException
This implementation allocates a FileInputStream.
createInputStream in interface URIHandlercreateInputStream in class URIHandlerImpluri - the URI for which to create the input stream.options - a map of options to influence the kind of stream that is returned; unrecognized options are ignored and null is permitted.
java.io.IOException - if there is a problem obtaining an open input stream.URIConverter.createInputStream(URI, Map)
public void delete(URI uri,
java.util.Map<?,?> options)
throws java.io.IOException
URIHandlerImpl
delete in interface URIHandlerdelete in class URIHandlerImpluri - the URI to consider.options - options to influence how the contents are deleted.
java.io.IOException - if there is a problem deleting the contents.URIConverter.delete(URI, Map)
public boolean exists(URI uri,
java.util.Map<?,?> options)
URIHandlerImpl
exists in interface URIHandlerexists in class URIHandlerImpluri - the URI to consider.options - options to influence how the existence determined.
URIConverter.exists(URI, Map)
public java.util.Map<java.lang.String,?> getAttributes(URI uri,
java.util.Map<?,?> options)
URIHandlerrequested attributes option can be used to specify which properties to fetch;
without that option, all supported attributes will be fetched.
If the URI doesn't not support any particular attribute, an entry for that attribute will not be appear in the result.
getAttributes in interface URIHandlergetAttributes in class URIHandlerImpluri - the URI to consider.options - options to influence how the attributes are determined.
public void setAttributes(URI uri,
java.util.Map<java.lang.String,?> attributes,
java.util.Map<?,?> options)
throws java.io.IOException
URIHandler
setAttributes in interface URIHandlersetAttributes in class URIHandlerImpluri - the URI to consider.attributes - the new values for the attributes.options - options to influence how the attributes are updated.
java.io.IOException - if there is a problem updating the attributes.
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||