Code example for Charset

Methods: displayName

0
            SAXParserFactory factory = SAXParserFactory.newInstance();
            SAXParser parser = factory.newSAXParser();
			DocumentParser handler = new DocumentParser(); 
            parser.parse(documentFile,handler);
			 
			document = new DocumentModel(documentFile.getName(), handler.getDocumentText(), encodingCharSet.displayName() );
			document.setEmphasisSpanList(handler.getEmphasisSpanList());
			document.setLocationMarkerList(handler.getLocationMarkerList());
        }  
        catch (SAXException e)
        { 
            //TODO  
            SimpleLogger.logError(e.toString());
            e.printStackTrace();
        }  
        catch (IOException e)
        { 
            // TODO Auto-generated catch block 
            SimpleLogger.logError(e.toString());
            e.printStackTrace();
Contextual code suggestions in your IDE  Get Codota for Java