|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dlese.dpc.schemedit.ndr.mets.DownLoadedFile
public class DownLoadedFile
Utility to download a URL and provide information about it, such as it's contentType, contentLength, binary content, etc
NOTE: getContent fetches binary content encoded to string for binary Files
| Constructor Summary | |
|---|---|
DownLoadedFile(URL url)
Constructor for the DownLoadedFile object |
|
| Method Summary | |
|---|---|
String |
getContent()
Gets the content attribute of the DownLoadedFile object |
int |
getContentLength()
Gets the contentLength attribute of the DownLoadedFile object |
String |
getContentType()
Gets the contentType attribute of the DownLoadedFile object |
String |
getFileName()
Gets the fileName attribute of the DownLoadedFile object |
boolean |
getIsBinary()
Gets the isBinary attribute of the DownLoadedFile object |
static void |
main(String[] args)
NOT YET DOCUMENTED |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DownLoadedFile(URL url)
throws Exception
url - url to be downloaded
Exception - if url cannot be processed| Method Detail |
|---|
public String getContent()
public String getFileName()
public boolean getIsBinary()
public int getContentLength()
public String getContentType()
public static void main(String[] args)
throws Exception
args - NOT YET DOCUMENTED
Exception - NOT YET DOCUMENTED
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||