com.asual.lesscss.loader
Interface ResourceLoader

All Known Implementing Classes:
ChainedResourceLoader, ClasspathResourceLoader, CssProcessingResourceLoader, FilesystemResourceLoader, HTTPResourceLoader, JNDIResourceLoader, StreamResourceLoader, UnixNewlinesResourceLoader

public interface ResourceLoader

ResourceLoader is used to locate and load stylesheets referenced with @include directive.

Author:
RafaƂ Krzewski

Method Summary
 boolean exists(String path)
          Checks if the given resource exists.
 String load(String path, String charset)
          Loads the given resource's contents.
 

Method Detail

exists

boolean exists(String path)
               throws IOException
Checks if the given resource exists.

Parameters:
path - resource path.
Returns:
true if the resource exists.
Throws:
IOException - when i/o error occurs while checking for resource existence.

load

String load(String path,
            String charset)
            throws IOException
Loads the given resource's contents.

Parameters:
path - resource path.
charset - character set name, valid with respect to Charset.
Returns:
resource contents as a string.
Throws:
IOException - when i/o error occurs while loading the resource, or charset is invalid.


Copyright © 2013 Asual DZZD. All Rights Reserved.