1 /*
2 * reserved comment block
3 * DO NOT REMOVE OR ALTER!
4 */
5 /*
6 * Licensed to the Apache Software Foundation (ASF) under one or more
7 * contributor license agreements. See the NOTICE file distributed with
8 * this work for additional information regarding copyright ownership.
9 * The ASF licenses this file to You under the Apache License, Version 2.0
10 * (the "License"); you may not use this file except in compliance with
11 * the License. You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 */
21
22
23 package com.sun.org.apache.xml.internal.serialize;
50 * and specify no document type.
51 * <p>
52 * The {@link OutputFormat} dictates what underlying serialized is used
53 * to serialize the document based on the specified method. If the output
54 * format or method are missing, the default is an XML serializer with
55 * UTF-8 encoding and now indentation.
56 *
57 *
58 * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
59 * @author <a href="mailto:Scott_Boag/CAM/Lotus@lotus.com">Scott Boag</a>
60 * @see DocumentHandler
61 * @see ContentHandler
62 * @see OutputFormat
63 * @see DOMSerializer
64 *
65 * @deprecated As of JDK 9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
66 * is replaced by that of Xalan. Main class
67 * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
68 * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.
69 */
70 public interface Serializer
71 {
72
73
74 /**
75 * Specifies an output stream to which the document should be
76 * serialized. This method should not be called while the
77 * serializer is in the process of serializing a document.
78 */
79 public void setOutputByteStream(OutputStream output);
80
81
82 /**
83 * Specifies a writer to which the document should be serialized.
84 * This method should not be called while the serializer is in
85 * the process of serializing a document.
86 */
87 public void setOutputCharStream( Writer output );
88
89
|
1 /*
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
3 */
4 /*
5 * Licensed to the Apache Software Foundation (ASF) under one or more
6 * contributor license agreements. See the NOTICE file distributed with
7 * this work for additional information regarding copyright ownership.
8 * The ASF licenses this file to You under the Apache License, Version 2.0
9 * (the "License"); you may not use this file except in compliance with
10 * the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20
21
22 package com.sun.org.apache.xml.internal.serialize;
49 * and specify no document type.
50 * <p>
51 * The {@link OutputFormat} dictates what underlying serialized is used
52 * to serialize the document based on the specified method. If the output
53 * format or method are missing, the default is an XML serializer with
54 * UTF-8 encoding and now indentation.
55 *
56 *
57 * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
58 * @author <a href="mailto:Scott_Boag/CAM/Lotus@lotus.com">Scott Boag</a>
59 * @see DocumentHandler
60 * @see ContentHandler
61 * @see OutputFormat
62 * @see DOMSerializer
63 *
64 * @deprecated As of JDK 9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
65 * is replaced by that of Xalan. Main class
66 * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
67 * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.
68 */
69 @Deprecated
70 public interface Serializer
71 {
72
73
74 /**
75 * Specifies an output stream to which the document should be
76 * serialized. This method should not be called while the
77 * serializer is in the process of serializing a document.
78 */
79 public void setOutputByteStream(OutputStream output);
80
81
82 /**
83 * Specifies a writer to which the document should be serialized.
84 * This method should not be called while the serializer is in
85 * the process of serializing a document.
86 */
87 public void setOutputCharStream( Writer output );
88
89
|