|
Sweet Home 3D 3.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.eteks.sweethome3d.tools.URLContent
public class URLContent
URL content for files, images...
Constructor Summary | |
---|---|
URLContent(java.net.URL url)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Returns true if the object in parameter is an URL content
that references the same URL as this object. |
java.lang.String |
getJAREntryName()
Returns the name of a JAR entry. |
java.net.URL |
getJAREntryURL()
Returns the URL base of a JAR entry. |
java.net.URL |
getURL()
Returns the URL of this content. |
int |
hashCode()
|
boolean |
isJAREntry()
Returns true if the URL stored by this content
references an entry in a JAR. |
java.io.InputStream |
openStream()
Returns an InputStream on the URL content. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLContent(java.net.URL url)
Method Detail |
---|
public java.net.URL getURL()
public java.io.InputStream openStream() throws java.io.IOException
openStream
in interface Content
java.io.IOException
- if URL stream can't be opened.public boolean isJAREntry()
true
if the URL stored by this content
references an entry in a JAR.
public java.net.URL getJAREntryURL()
java.lang.IllegalStateException
- if the URL of this content
doesn't reference an entry in a JAR.public java.lang.String getJAREntryName()
java.lang.IllegalStateException
- if the URL of this content
doesn't reference an entry in a JAR URL.public boolean equals(java.lang.Object obj)
true
if the object in parameter is an URL content
that references the same URL as this object.
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
Sweet Home 3D 3.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
? Copyrights 2006-2011 eTeks - All rights reserved
Distributed under GNU General Public License |