Class ConnectionFactory
- java.lang.Object
-
- de.larsgrefer.sass.embedded.connection.ConnectionFactory
-
@RequiresApi(1000) public final class ConnectionFactory extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProcessConnection
bundled()
static ProcessConnection
downloaded()
static ProcessConnection
fromPackageProvider(DartSassPackageProvider dartSassPackageProvider)
static String
getExpectedProtocolVersion()
static ProcessConnection
ofExecutable(File executable)
Create a newProcessConnection
for the given dart-sass executable.static ProcessConnection
ofExecutable(List<String> executable)
Create a newProcessConnection
for the given dart-sass command.
-
-
-
Method Detail
-
bundled
public static ProcessConnection bundled() throws IOException
- Throws:
IOException
-
downloaded
public static ProcessConnection downloaded() throws IOException
- Throws:
IOException
-
fromPackageProvider
public static ProcessConnection fromPackageProvider(DartSassPackageProvider dartSassPackageProvider) throws IOException
- Throws:
IOException
-
ofExecutable
public static ProcessConnection ofExecutable(File executable) throws IOException
Create a newProcessConnection
for the given dart-sass executable.- Parameters:
executable
- The sass executable.- Returns:
- A fresh
ProcessConnection
. - Throws:
IOException
- if the subprocess can not be started.
-
ofExecutable
public static ProcessConnection ofExecutable(List<String> executable) throws IOException
Create a newProcessConnection
for the given dart-sass command.- Parameters:
executable
- The sass commandline (including --embedded).- Returns:
- A fresh
ProcessConnection
. - Throws:
IOException
- if the subprocess can not be started.
-
getExpectedProtocolVersion
public static String getExpectedProtocolVersion()
-
-