File: Destination.java

package info (click to toggle)
libxt-java 0.19991105-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,908 kB
  • ctags: 2,762
  • sloc: java: 12,823; makefile: 52; xml: 46
file content (25 lines) | stat: -rw-r--r-- 715 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.jclark.xsl.sax;

import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.io.OutputStream;
import java.io.Writer;

public interface Destination {
  OutputStream getOutputStream(String contentType, String encoding)
    throws IOException;
  Writer getWriter(String contentType, String encoding)
    throws IOException, UnsupportedEncodingException;
  /**
   * Returns true if the OutputStream or Writer should be kept open by the
   * caller and not closed when the caller is done with it.
   */
  boolean keepOpen();

  /**
   * Returns the IANA name of the encoding actually used.
   */
  String getEncoding();

  Destination resolve(String uri);
}