public class SassDataContext extends SassContext
| Modifier and Type | Field and Description |
|---|---|
protected com.cathive.sass.jna.SassLibrary.Sass_Data_Context |
$data_context |
$context, options| Modifier | Constructor and Description |
|---|---|
protected |
SassDataContext(com.cathive.sass.jna.SassLibrary.Sass_Data_Context $data_context) |
| Modifier and Type | Method and Description |
|---|---|
static SassDataContext |
create(ByteBuffer sourceBuffer)
Creates a new Sass context object from the given byte buffer.
|
static SassDataContext |
create(InputStream inputStream)
Creates a new Sass context object from the given input stream.
|
static SassDataContext |
create(String inputString) |
protected com.cathive.sass.jna.SassLibrary.Sass_Compiler |
createCompiler()
Creates a native Sass compiler instance.
|
protected void |
finalize() |
void |
setOptions(SassOptions options) |
compile, compile, getOptions, throwCompilationExceptionprotected com.cathive.sass.jna.SassLibrary.Sass_Data_Context $data_context
protected SassDataContext(@Nonnull com.cathive.sass.jna.SassLibrary.Sass_Data_Context $data_context)
public static SassDataContext create(@Nonnull ByteBuffer sourceBuffer)
sourceBuffer - Byte buffer to be read. Must produce a valid SCSS document when read.public static SassDataContext create(@WillClose @Nonnull InputStream inputStream) throws IOException
inputStream - Input stream to be read. Must produce a valid SCSS document when read.IOException - If anything weird happens while processing the given input stream.public static SassDataContext create(@Nonnull String inputString) throws IOException
IOExceptionpublic void setOptions(@Nonnull SassOptions options)
setOptions in class SassContext@Nonnull protected com.cathive.sass.jna.SassLibrary.Sass_Compiler createCompiler()
SassContextThis instance will be used in the various compile methods that are part of the public API.
createCompiler in class SassContextprotected void finalize()
throws Throwable
finalize in class SassContextThrowableCopyright © 2013–2015 The Cat Hive Developers. All rights reserved.