/** * Returns the expected character set encoding for content based upon the * input properties content type. * * @param inProps input properties * @return expected character set encoding */ protected String getCharset(InputProperties inProps) { return inProps.getContentType().getCharset(); }
/** * Returns the expected character set encoding for content based upon the * input properties content type. * * @param inProps input properties * @return expected character set encoding */ protected String getCharset(InputProperties inProps) { return inProps.getContentType().getCharset(); }
/** * Returns the expected character set encoding for content based upon the * input properties content type. * * @param inProps input properties * @return expected character set encoding */ protected String getCharset(InputProperties inProps) { return inProps.getContentType().getCharset(); }
/** * Returns the character set encoding that should be used for generated * output. * @param outProps output properties for generated output * @return character set encoding for output */ protected static String getCharsetEncoding(OutputProperties outProps) { String charset = null; if (outProps.getContentType() != null) { charset = outProps.getContentType().getCharset(); } if (charset == null) { charset = "utf-8"; // default encoding } return charset; }
/** * Returns the character set encoding that should be used for generated * output. * @param outProps output properties for generated output * @return character set encoding for output */ protected static String getCharsetEncoding(OutputProperties outProps) { String charset = null; if (outProps.getContentType() != null) { charset = outProps.getContentType().getCharset(); } if (charset == null) { charset = "utf-8"; // default encoding } return charset; }
/** * Returns the character set encoding that should be used for generated * output. * @param outProps output properties for generated output * @return character set encoding for output */ protected static String getCharsetEncoding(OutputProperties outProps) { String charset = null; if (outProps.getContentType() != null) { charset = outProps.getContentType().getCharset(); } if (charset == null) { charset = "utf-8"; // default encoding } return charset; }