public static String formatETag ( final String etag ) { if ( etag . startsWith ( "\"" ) && etag . endsWith ( "\"" ) ) { return etag ; } else { return String . format ( "\"%s\"" , etag ) ; } }
Reads character data for the Etag element from an XML stream reader .