com.asual.lesscss.loader
Class HTTPResourceLoader
java.lang.Object
com.asual.lesscss.loader.StreamResourceLoader
com.asual.lesscss.loader.HTTPResourceLoader
- All Implemented Interfaces:
- ResourceLoader
public class HTTPResourceLoader
- extends StreamResourceLoader
A naive resource loader using URLConnection.
For any sort of serious usage, a proper loader needs to be implemented using
Apache httpclient or similar.
- Author:
- RafaĆ Krzewski
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTTPResourceLoader
public HTTPResourceLoader()
getSchema
protected String getSchema()
- Description copied from class:
StreamResourceLoader
- Returns the schema name associated with the loader.
- Specified by:
getSchema in class StreamResourceLoader
- Returns:
- schema name.
openStream
protected InputStream openStream(String path)
throws IOException
- Description copied from class:
StreamResourceLoader
- Returns an
InputStream for reading the resource.
- Specified by:
openStream in class StreamResourceLoader
- Parameters:
path - the path of the resource.
- Returns:
- an
InputStream or null if the resource does not
exist.
- Throws:
IOException - when i/o operation fails.
Copyright © 2013 Asual DZZD. All Rights Reserved.