code: public static StyledLayerDescriptor readStyle( File file ) throws IOException {
          SLDParser stylereader = new SLDParser(sf, file);
          StyledLayerDescriptor sld = stylereader.parseSLD();
          return sld;
      }
docs: Parse a file and extract the {@link StyledLayerDescriptor}.
  
  @param file the sld file to parse.
  @return the styled layer descriptor.
  @throws IOException