|
||||||||||
| 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.FileCachedInputStreamContent
Date: 05.01.2008
| Constructor Summary | |
FileCachedInputStreamContent(java.io.InputStream in,
java.io.File tmp)
|
|
| Method Summary | |
boolean |
canReload()
Determine if data may be reloaded or not. |
void |
close()
close stream |
protected void |
finalize()
|
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 |
load |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileCachedInputStreamContent(java.io.InputStream in,
java.io.File tmp)
throws java.io.IOException
| 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 Content
protected void finalize()
throws java.lang.Throwable
finalize in class Contentjava.lang.Throwablepublic boolean canReload()
Content
canReload in class Contentpublic boolean writable()
writable in class Content
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||