Skip to content

Commit be3cb01

Browse files
committed
Removed the deprecated constructors
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1199772 13f79535-47bb-0310-9956-ffa450edef68
1 parent cacb79d commit be3cb01

2 files changed

Lines changed: 3 additions & 58 deletions

File tree

src/main/java/org/apache/commons/csv/CSVParser.java

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17+
1718
package org.apache.commons.csv;
1819

1920
import java.io.IOException;
20-
import java.io.InputStream;
21-
import java.io.InputStreamReader;
2221
import java.io.Reader;
2322
import java.util.ArrayList;
2423
import java.util.List;
@@ -117,16 +116,6 @@ Token reset() {
117116
// the constructor
118117
// ======================================================
119118

120-
/**
121-
* Default strategy for the parser follows the default {@link CSVStrategy}.
122-
*
123-
* @param input an InputStream containing "csv-formatted" stream
124-
* @deprecated use {@link #CSVParser(Reader)}.
125-
*/
126-
public CSVParser(InputStream input) {
127-
this(new InputStreamReader(input));
128-
}
129-
130119
/**
131120
* CSV parser using the default {@link CSVStrategy}.
132121
*
@@ -136,37 +125,6 @@ public CSVParser(Reader input) {
136125
this(input, (CSVStrategy) CSVStrategy.DEFAULT_STRATEGY.clone());
137126
}
138127

139-
/**
140-
* Customized value delimiter parser.
141-
* <p/>
142-
* The parser follows the default {@link CSVStrategy}
143-
* except for the delimiter setting.
144-
*
145-
* @param input a Reader based on "csv-formatted" input
146-
* @param delimiter a Char used for value separation
147-
* @deprecated use {@link #CSVParser(Reader, CSVStrategy)}.
148-
*/
149-
public CSVParser(Reader input, char delimiter) {
150-
this(input, delimiter, '"', CSVStrategy.COMMENTS_DISABLED);
151-
}
152-
153-
/**
154-
* Customized csv parser.
155-
* <p/>
156-
* The parser parses according to the given CSV dialect settings.
157-
* Leading whitespaces are truncated, unicode escapes are
158-
* not interpreted and empty lines are ignored.
159-
*
160-
* @param input a Reader based on "csv-formatted" input
161-
* @param delimiter a Char used for value separation
162-
* @param encapsulator a Char used as value encapsulation marker
163-
* @param commentStart a Char used for comment identification
164-
* @deprecated use {@link #CSVParser(Reader, CSVStrategy)}.
165-
*/
166-
public CSVParser(Reader input, char delimiter, char encapsulator, char commentStart) {
167-
this(input, new CSVStrategy(delimiter, encapsulator, commentStart));
168-
}
169-
170128
/**
171129
* Customized CSV parser using the given {@link CSVStrategy}
172130
*

src/main/java/org/apache/commons/csv/CSVStrategy.java

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17+
1718
package org.apache.commons.csv;
1819

1920
import java.io.Serializable;
@@ -51,7 +52,7 @@ public class CSVStrategy implements Cloneable, Serializable {
5152

5253

5354
public CSVStrategy(char delimiter, char encapsulator, char commentStart) {
54-
this(delimiter, encapsulator, commentStart, true, false, true);
55+
this(delimiter, encapsulator, commentStart, ESCAPE_DISABLED, true, true, false, true);
5556
}
5657

5758
/**
@@ -85,20 +86,6 @@ public CSVStrategy(
8586
this.ignoreEmptyLines = ignoreEmptyLines;
8687
}
8788

88-
/**
89-
* @deprecated
90-
*/
91-
public CSVStrategy(
92-
char delimiter,
93-
char encapsulator,
94-
char commentStart,
95-
boolean ignoreLeadingWhitespaces,
96-
boolean interpretUnicodeEscapes,
97-
boolean ignoreEmptyLines) {
98-
this(delimiter, encapsulator, commentStart, CSVStrategy.ESCAPE_DISABLED, ignoreLeadingWhitespaces,
99-
true, interpretUnicodeEscapes, ignoreEmptyLines);
100-
}
101-
10289
public void setDelimiter(char delimiter) {
10390
this.delimiter = delimiter;
10491
}

0 commit comments

Comments
 (0)