1. /*
  2. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package javax.xml.transform;
  6. import java.lang.String;
  7. import java.io.InputStream;
  8. import java.io.Reader;
  9. /**
  10. * An object that implements this interface contains the information
  11. * needed to act as source input (XML source or transformation instructions).
  12. */
  13. public interface Source {
  14. /**
  15. * Set the system identifier for this Source.
  16. *
  17. * <p>The system identifier is optional if the source does not
  18. * get its data from a URL, but it may still be useful to provide one.
  19. * The application can use a system identifier, for example, to resolve
  20. * relative URIs and to include in error messages and warnings.</p>
  21. *
  22. * @param systemId The system identifier as a URL string.
  23. */
  24. public void setSystemId(String systemId);
  25. /**
  26. * Get the system identifier that was set with setSystemId.
  27. *
  28. * @return The system identifier that was set with setSystemId, or null
  29. * if setSystemId was not called.
  30. */
  31. public String getSystemId();
  32. }