public static ResourceSnippet createResourceSnippet ( Resource res , int startChar , int endChar , String charset ) { try { return createResourceSnippet ( res . getInputStream ( ) , startChar , endChar , charset ) ; } catch ( IOException ex ) { return ResourceSnippet . Empty ; } }
extract a ResourceSnippet from a Resource at the given char positions