[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[geclipse-dev] EFS openInputStream
|
Hi all
I try to connect to
another Cloud file system. So I started to implement the Cloud file
system using EFS.
The first draft
works partly:
1. I can create the
connection
2. I can browser
through the hierarchy of the File System. The file system is in fact like AWS S3
or GRIA.
ONe has a
bucket/container and a list of files under the container.
3. When I try to
(over-) write the openInputStream the file, I can get the content
as a String. There is not getInputStream method available from the API. Then I
do the following:
InputStream value =
null ;
Inp....
Inputt Stream value = null ;
...
String result = (use
API used to get the String. I can dump it to the screen!!)
value = new
ByteArrayInputStream(result.getBytes());
return value ;
When doing so, I can
not open the editor, as I got the following message:
java.nio.BufferOverflowException
at
java.nio.HeapByteBuffer.put(Unknown Source)
at
eu.geclipse.core.filesystem.internal.filesystem.CachedInputStream.cache(CachedInputStream.java:123)
at
eu.geclipse.core.filesystem.internal.filesystem.GEclipseFileStore.cacheInputStream(GEclipseFileStore.java:208)
at
eu.geclipse.core.filesystem.internal.filesystem.ConnectionElement.getCachedConnectionFileStore(ConnectionElement.java:165)
at
eu.geclipse.ui.internal.actions.OpenFileAction$1.run(OpenFileAction.java:171)
at
org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Any idea??
Matheusz, Mathias,
Thomas, ...
Harald