Debian Codegraph @

core/java/com/android/internal/util/IndentingPrintWriter.java

raw symbols SCIP
1 /*
2 * Copyright (C) 2012 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package com.android.internal.util;
18
19 import android.compat.annotation.UnsupportedAppUsage;
20 import android.os.Build;
21
22 import java.io.Writer;
23
24 /**
25 * @deprecated Use {@link android.util.IndentingPrintWriter}
26 */
27 @Deprecated
28 public class IndentingPrintWriter extends android.util.IndentingPrintWriter {
29
30 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
31 public IndentingPrintWriter(Writer writer, String singleIndent) {
32 super(writer, singleIndent, -1);
33 }
34
35 public IndentingPrintWriter(Writer writer, String singleIndent, int wrapLength) {
36 super(writer, singleIndent, wrapLength);
37 }
38
39 public IndentingPrintWriter(Writer writer, String singleIndent, String prefix, int wrapLength) {
40 super(writer, singleIndent, prefix, wrapLength);
41 }
42
43 public IndentingPrintWriter setIndent(String indent) {
44 super.setIndent(indent);
45 return this;
46 }
47
48 public IndentingPrintWriter setIndent(int indent) {
49 super.setIndent(indent);
50 return this;
51 }
52
53 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
54 public IndentingPrintWriter increaseIndent() {
55 super.increaseIndent();
56 return this;
57 }
58
59 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
60 public IndentingPrintWriter decreaseIndent() {
61 super.decreaseIndent();
62 return this;
63 }
64
65 public IndentingPrintWriter printPair(String key, Object value) {
66 super.print(key, value);
67 return this;
68 }
69
70 public IndentingPrintWriter printPair(String key, Object[] value) {
71 super.print(key, value);
72 return this;
73 }
74
75 public IndentingPrintWriter printHexPair(String key, int value) {
76 super.printHexInt(key, value);
77 return this;
78 }
79 }