mirror of https://github.com/apache/poi.git
extra constructors
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1896280 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cf1354dc6c
commit
5df24b681f
|
@ -148,14 +148,31 @@ public class ReadOnlySharedStringsTable extends DefaultHandler implements Shared
|
|||
}
|
||||
|
||||
/**
|
||||
* Like POIXMLDocumentPart constructor
|
||||
*
|
||||
* @since POI 3.14-Beta3
|
||||
*/
|
||||
public ReadOnlySharedStringsTable(PackagePart part, boolean includePhoneticRuns)
|
||||
throws IOException, SAXException {
|
||||
this.includePhoneticRuns = includePhoneticRuns;
|
||||
readFrom(part.getInputStream());
|
||||
try (InputStream stream = part.getInputStream()) {
|
||||
readFrom(stream);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @since POI 5.2.0
|
||||
*/
|
||||
public ReadOnlySharedStringsTable(InputStream stream)
|
||||
throws IOException, SAXException {
|
||||
this(stream, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* @since POI 5.2.0
|
||||
*/
|
||||
public ReadOnlySharedStringsTable(InputStream stream, boolean includePhoneticRuns)
|
||||
throws IOException, SAXException {
|
||||
this.includePhoneticRuns = includePhoneticRuns;
|
||||
readFrom(stream);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue