public static ResourceSnippet createResourceSnippet ( InputStream is , int startChar , int endChar , String charset ) { return createResourceSnippet ( getContents ( is , charset ) , startChar , endChar ) ; }
extract a ResourceSnippet from InputStream at the given char positions