code: public static ResourceSnippet createResourceSnippet(InputStream is, int startChar, int endChar, String charset) {
  
  	return createResourceSnippet(getContents(is, charset), startChar, endChar);
      }
docs: extract a ResourceSnippet from InputStream at the given char positions
  
  @param is - InputStream of the Resource
  @param startChar - start position of the snippet
  @param endChar - end position of the snippet
  @param charset - use server's charset, default should be UTF-8
  @return