src/main/java/de/blau/android/util/Util.java
/**
     * Create a Po class from an InputStream
     * 
     * @param poFileStream the InputStream
     * @return an Po object or null
     */
Create a Po class from an InputStream

@param poFileStream the InputStream
@return an Po object or null
Create a Po class from an InputStream @param poFileStream the InputStream @return an Po object or null
@Nullable
    public static Po parsePoFile(@Nullable InputStream poFileStream) {
        if (poFileStream != null) {
            try {
                return new Po(poFileStream);
            } catch (ParseException | TokenMgrError ignored) {
                Log.e(DEBUG_TAG, "Parsing translation file for " + Locale.getDefault() + " or " + Locale.getDefault().getLanguage() + " failed");
            }
        }
        return null;
    }
@ Nullable public static Po parsePoFile ( @ Nullable InputStream poFileStream ) { if ( poFileStream != null ) { try { return new Po ( poFileStream ) ; } catch ( ParseException | TokenMgrError ignored ) { Log . e ( DEBUG_TAG , "Parsing translation file for " + Locale . getDefault ( ) + " or " + Locale . getDefault ( ) . getLanguage ( ) + " failed" ) ; } } return null ; }
Create a Po class from an InputStream
Create a Po class from an InputStream