InputStreams and
OutputStreams where appropriate.
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the MIME TypeThis method returns the MIME type of the data in the form of a string. |
| public InputStream | Returns: an InputStreamThis method returns an |
| public String | Returns: the name of the object.Return the name of this object where the name of the object is dependant on the nature of the underlying objects. |
| public OutputStream | Returns: an OutputStreamThis method returns an |
| getContentType | back to summary |
|---|---|
| public String getContentType() This method returns the MIME type of the data in the form of a string. It should always return a valid type. It is suggested that getContentType return "application/octet-stream" if the DataSource implementation can not determine the data type.
| |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() throws IOException This method returns an
| |
| getName | back to summary |
|---|---|
| public String getName() Return the name of this object where the name of the object is dependant on the nature of the underlying objects. DataSources encapsulating files may choose to return the filename of the object. (Typically this would be the last component of the filename, not an entire pathname.)
| |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() throws IOException This method returns an
| |