Added methods to load stylesheet from IO stream.