Package org.dlese.dpc.schemedit.ndr.mets
Class DownLoadedFile
java.lang.Object
org.dlese.dpc.schemedit.ndr.mets.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
- Author:
- Jonathan Ostwald
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the content attribute of the DownLoadedFile objectintGets the contentLength attribute of the DownLoadedFile objectGets the contentType attribute of the DownLoadedFile objectGets the fileName attribute of the DownLoadedFile objectbooleanGets the isBinary attribute of the DownLoadedFile objectstatic voidNOT YET DOCUMENTED
-
Constructor Details
-
DownLoadedFile
Constructor for the DownLoadedFile object- Parameters:
url- url to be downloaded- Throws:
Exception- if url cannot be processed
-
-
Method Details
-
getContent
Gets the content attribute of the DownLoadedFile object- Returns:
- The content value
-
getFileName
Gets the fileName attribute of the DownLoadedFile object- Returns:
- The fileName value
-
getIsBinary
public boolean getIsBinary()Gets the isBinary attribute of the DownLoadedFile object- Returns:
- The isBinary value
-
getContentLength
public int getContentLength()Gets the contentLength attribute of the DownLoadedFile object- Returns:
- The contentLength value
-
getContentType
Gets the contentType attribute of the DownLoadedFile object- Returns:
- The contentType value
-
main
NOT YET DOCUMENTED- Parameters:
args- NOT YET DOCUMENTED- Throws:
Exception- NOT YET DOCUMENTED
-