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 ProcessConnectionbundled()static ProcessConnectiondownloaded()static ProcessConnectionfromPackageProvider(DartSassPackageProvider dartSassPackageProvider)static StringgetExpectedProtocolVersion()static ProcessConnectionofExecutable(File executable)Create a newProcessConnectionfor the given dart-sass executable.static ProcessConnectionofExecutable(List<String> executable)Create a newProcessConnectionfor 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 newProcessConnectionfor 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 newProcessConnectionfor 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()
-
-