src/main/java/pl/jalokim/propertiestojson/util/PropertiesToJsonConverter.java
public String convertToJson(InputStream inputStream, String... includeDomainKeys) throws ReadInputException, ParsePropertiesException {
        return convertToJson(inputStreamToProperties(inputStream), includeDomainKeys);
    }
public String convertToJson(InputStream inputStream, String... includeDomainKeys) throws ReadInputException, ParsePropertiesException {
        return convertToJson(inputStreamToProperties(inputStream), includeDomainKeys);
    }
public String convertToJson ( InputStream inputStream , String ... includeDomainKeys ) throws ReadInputException , ParsePropertiesException { return convertToJson ( inputStreamToProperties ( inputStream ) , includeDomainKeys ) ; }
generate Json by given InputStream and given filter.

@param inputStream       InputStream with properties
@param includeDomainKeys domain head keys which should be parsed to json <br>
example properties:<br>
object1.field1=value1<br>
object1.field2=value2<br>
someObject2.field2=value3<br>
filter "object1"<br>
will parse only nested domain for "object1"<br>
@return simple String with json
@throws ReadInputException       when cannot find file
@throws ParsePropertiesException when structure of properties is not compatible with json structure
generate Json by given InputStream and given filter .