|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvnet.hudson.tftpd.Data
public abstract class Data
| Constructor Summary | |
|---|---|
Data()
|
|
| Method Summary | |
|---|---|
static Data |
from(byte[] data)
Creates a Data object around a byte array. |
static Data |
from(java.lang.String data)
Creates a Data object around a String. |
static Data |
from(java.net.URL url)
Creates a Data object from a URL. |
abstract java.io.InputStream |
read()
Reads this data. |
int |
size()
Computes the size of the data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Data()
| Method Detail |
|---|
public abstract java.io.InputStream read()
throws java.io.IOException
java.io.IOException - If it turns out that this data doesn't exist, or failed to read.
public int size()
throws java.io.IOException
The default implementation isn't very efficient.
java.io.IOExceptionpublic static Data from(java.net.URL url)
Data object from a URL.
public static Data from(java.lang.String data)
Data object around a String.
public static Data from(byte[] data)
Data object around a byte array.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||