|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.imagero.uio.bio.content.Content
com.imagero.uio.bio.content.SynchronizedContent
Date: 05.01.2008
| Constructor Summary | |
SynchronizedContent(Content content)
|
|
| Method Summary | |
boolean |
canReload()
Determine if data may be reloaded or not. |
void |
close()
close stream |
Content |
getContent()
|
long |
length()
Get stream length. |
int |
load(long offset,
int bpos,
byte[] buffer)
Load stream content to specified buffer |
void |
save(long offset,
int bpos,
byte[] buffer,
int length)
Save buffer content to stream. |
boolean |
writable()
|
| Methods inherited from class com.imagero.uio.bio.content.Content |
finalize, load |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SynchronizedContent(Content content)
| Method Detail |
public int load(long offset,
int bpos,
byte[] buffer)
throws java.io.IOException
Content
load in class Contentoffset - stream offsetbpos - buffer positionbuffer - byte array
java.io.IOException
public void save(long offset,
int bpos,
byte[] buffer,
int length)
throws java.io.IOException
Content
save in class Contentoffset - stream offsetbpos - buffer positionbuffer - byte arraylength - how much bytes should be saved
java.io.IOException
public long length()
throws java.io.IOException
Content
length in class Contentjava.io.IOExceptionpublic void close()
Content
close in class Contentpublic boolean canReload()
Content
canReload in class Contentpublic boolean writable()
writable in class Contentpublic Content getContent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||