|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JcrDataProvider
An interface for providing access to file content within a JcrFile instance.
Thanks to Robin Wyles for adding content length.
| Nested Class Summary | |
|---|---|
static class |
JcrDataProvider.TYPE
|
| Method Summary | |
|---|---|
byte[] |
getBytes()
Return a byte array. |
long |
getContentLength()
Returns the length of the byte array / file / input stream |
java.io.File |
getFile()
Return a file. |
java.io.InputStream |
getInputStream()
Return an input stream. |
JcrDataProvider.TYPE |
getType()
Get the type of content this provider offers. |
void |
writeToFile(java.io.File file)
Write the content out to the File supplied. |
| Method Detail |
|---|
JcrDataProvider.TYPE getType()
java.io.File getFile()
byte[] getBytes()
java.io.InputStream getInputStream()
void writeToFile(java.io.File file)
throws java.io.IOException
file - the file in question
java.io.IOExceptionlong getContentLength()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||