Package org.drools.mvel.parser
Class Providers
- java.lang.Object
-
- org.drools.mvel.parser.Providers
-
public final class Providers extends java.lang.ObjectFactory for providers of source code for JavaParser. Providers that have no parameter for encoding but need it will use UTF-8.
-
-
Field Summary
Fields Modifier and Type Field Description static java.nio.charset.CharsetUTF8
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Providerprovider(java.io.File file)static Providerprovider(java.io.File file, java.nio.charset.Charset encoding)static Providerprovider(java.io.InputStream input)static Providerprovider(java.io.InputStream input, java.nio.charset.Charset encoding)static Providerprovider(java.io.Reader reader)static Providerprovider(java.lang.String source)static Providerprovider(java.nio.file.Path path)static Providerprovider(java.nio.file.Path path, java.nio.charset.Charset encoding)static ProviderresourceProvider(java.lang.ClassLoader classLoader, java.lang.String pathToResource, java.nio.charset.Charset encoding)Provide a Provider from the resource found in class loader with the provided encoding.
As resource is accessed through a class loader, a leading "/" is not allowed in pathToResourcestatic ProviderresourceProvider(java.lang.String pathToResource)Provide a Provider from the resource found in the current class loader with UTF-8 encoding.
As resource is accessed through a class loader, a leading "/" is not allowed in pathToResourcestatic ProviderresourceProvider(java.lang.String pathToResource, java.nio.charset.Charset encoding)Provide a Provider from the resource found in the current class loader with the provided encoding.
As resource is accessed through a class loader, a leading "/" is not allowed in pathToResource
-
-
-
Method Detail
-
provider
public static Provider provider(java.io.Reader reader)
-
provider
public static Provider provider(java.io.InputStream input, java.nio.charset.Charset encoding)
-
provider
public static Provider provider(java.io.InputStream input)
-
provider
public static Provider provider(java.io.File file, java.nio.charset.Charset encoding) throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
-
provider
public static Provider provider(java.io.File file) throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
-
provider
public static Provider provider(java.nio.file.Path path, java.nio.charset.Charset encoding) throws java.io.IOException
- Throws:
java.io.IOException
-
provider
public static Provider provider(java.nio.file.Path path) throws java.io.IOException
- Throws:
java.io.IOException
-
provider
public static Provider provider(java.lang.String source)
-
resourceProvider
public static Provider resourceProvider(java.lang.ClassLoader classLoader, java.lang.String pathToResource, java.nio.charset.Charset encoding) throws java.io.IOException
Provide a Provider from the resource found in class loader with the provided encoding.
As resource is accessed through a class loader, a leading "/" is not allowed in pathToResource- Throws:
java.io.IOException
-
resourceProvider
public static Provider resourceProvider(java.lang.String pathToResource, java.nio.charset.Charset encoding) throws java.io.IOException
Provide a Provider from the resource found in the current class loader with the provided encoding.
As resource is accessed through a class loader, a leading "/" is not allowed in pathToResource- Throws:
java.io.IOException
-
resourceProvider
public static Provider resourceProvider(java.lang.String pathToResource) throws java.io.IOException
Provide a Provider from the resource found in the current class loader with UTF-8 encoding.
As resource is accessed through a class loader, a leading "/" is not allowed in pathToResource- Throws:
java.io.IOException
-
-