Package org.postgresql.util
Class PGPropertyServiceParser
java.lang.Object
org.postgresql.util.PGPropertyServiceParser
helps to read Connection Service File.
https://www.postgresql.org/docs/current/libpq-pgservice.html
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate String
private Properties
static Properties
getServiceProperties
(String serviceName) Read pg_service.conf resourceprivate InputStream
openInputStream
(String resourceName) private Properties
parseInputStream
(InputStream inputStream)
-
Field Details
-
LOGGER
-
serviceName
-
ignoreIfOpenFails
private boolean ignoreIfOpenFails
-
-
Constructor Details
-
PGPropertyServiceParser
-
-
Method Details
-
getServiceProperties
Read pg_service.conf resource- Parameters:
serviceName
- service name to search for- Returns:
- key value pairs
-
findServiceDescription
-
openInputStream
- Throws:
IOException
-
findPgServiceConfResourceName
-
parseInputStream
- Throws:
IOException
-