File tree Expand file tree Collapse file tree 10 files changed +26
-22
lines changed
src/main/java/com/basistech/rosette/api Expand file tree Collapse file tree 10 files changed +26
-22
lines changed Original file line number Diff line number Diff line change 11language : java
2- # Javadoc exclusions don't work with JDK 1.7.
3- script : mvn -Dmaven.javadoc.skip=true clean verify
2+ script : mvn clean verify
43jdk :
54- oraclejdk8
6- - openjdk7
75- openjdk8
86
97# suggested by travis support.
Original file line number Diff line number Diff line change 1919 <parent >
2020 <groupId >com.basistech.rosette</groupId >
2121 <artifactId >rosette-api-java-binding</artifactId >
22- <version >1.11.103 -SNAPSHOT</version >
22+ <version >1.11.104 -SNAPSHOT</version >
2323 </parent >
2424 <artifactId >rosette-api-annotations</artifactId >
2525 <name >rosette-api-annotations</name >
Original file line number Diff line number Diff line change 1919 <parent >
2020 <groupId >com.basistech.rosette</groupId >
2121 <artifactId >rosette-api-java-binding</artifactId >
22- <version >1.11.103 -SNAPSHOT</version >
22+ <version >1.11.104 -SNAPSHOT</version >
2323 </parent >
2424 <artifactId >rosette-api</artifactId >
2525 <name >rosette-api</name >
6161 <artifactId >httpmime</artifactId >
6262 <version >${http-components-version} </version >
6363 </dependency >
64- <dependency >
65- <groupId >com.google.guava</groupId >
66- <artifactId >guava</artifactId >
67- <scope >compile</scope >
68- </dependency >
6964 <dependency >
7065 <groupId >org.slf4j</groupId >
7166 <artifactId >slf4j-api</artifactId >
Original file line number Diff line number Diff line change 3535import com .fasterxml .jackson .databind .DeserializationFeature ;
3636import com .fasterxml .jackson .databind .ObjectMapper ;
3737import com .fasterxml .jackson .databind .ObjectWriter ;
38- import com .google .common .io .ByteStreams ;
3938import org .apache .http .Header ;
4039import org .apache .http .HttpEntity ;
4140import org .apache .http .HttpHeaders ;
6160import org .slf4j .Logger ;
6261import org .slf4j .LoggerFactory ;
6362
63+ import java .io .ByteArrayOutputStream ;
6464import java .io .IOException ;
6565import java .io .InputStream ;
6666import java .io .OutputStream ;
@@ -159,7 +159,18 @@ private static String getVersion() {
159159 * @throws IOException
160160 */
161161 private static byte [] getBytes (InputStream is ) throws IOException {
162- return ByteStreams .toByteArray (is );
162+ ByteArrayOutputStream out = new ByteArrayOutputStream ();
163+
164+ byte [] buf = new byte [4096 ];
165+
166+ while (true ) {
167+ int r = is .read (buf );
168+ if (r == -1 ) {
169+ out .flush ();
170+ return out .toByteArray ();
171+ }
172+ out .write (buf , 0 , r );
173+ }
163174 }
164175
165176 private void initClient (String key , List <Header > additionalHeaders ) {
Original file line number Diff line number Diff line change 1919 <parent >
2020 <groupId >com.basistech.rosette</groupId >
2121 <artifactId >rosette-api-java-binding</artifactId >
22- <version >1.11.103 -SNAPSHOT</version >
22+ <version >1.11.104 -SNAPSHOT</version >
2323 </parent >
2424 <artifactId >rosette-api-common</artifactId >
2525 <name >rosette-api-common</name >
Original file line number Diff line number Diff line change 2020 <parent >
2121 <groupId >com.basistech.rosette</groupId >
2222 <artifactId >rosette-api-java-binding</artifactId >
23- <version >1.11.103 -SNAPSHOT</version >
23+ <version >1.11.104 -SNAPSHOT</version >
2424 </parent >
2525 <groupId >com.basistech.rosette</groupId >
2626 <artifactId >rosette-api-examples</artifactId >
Original file line number Diff line number Diff line change 2020 <parent >
2121 <groupId >com.basistech.rosette</groupId >
2222 <artifactId >rosette-api-java-binding</artifactId >
23- <version >1.11.103 -SNAPSHOT</version >
23+ <version >1.11.104 -SNAPSHOT</version >
2424 </parent >
2525 <artifactId >rosette-api-json</artifactId >
2626 <name >rosette-api-json</name >
Original file line number Diff line number Diff line change 1919 <parent >
2020 <groupId >com.basistech.rosette</groupId >
2121 <artifactId >rosette-api-java-binding</artifactId >
22- <version >1.11.103 -SNAPSHOT</version >
22+ <version >1.11.104 -SNAPSHOT</version >
2323 </parent >
2424 <artifactId >rosette-api-model</artifactId >
2525 <name >rosette-api-model</name >
Original file line number Diff line number Diff line change 1818 <modelVersion >4.0.0</modelVersion >
1919 <groupId >com.basistech.rosette</groupId >
2020 <artifactId >rosette-api-java-binding</artifactId >
21- <version >1.11.103 -SNAPSHOT</version >
21+ <version >1.11.104 -SNAPSHOT</version >
2222 <parent >
2323 <artifactId >open-source-parent</artifactId >
2424 <groupId >com.basistech</groupId >
25- <version >1.1.10 </version >
25+ <version >2.0.0 </version >
2626 <relativePath />
2727 </parent >
2828 <packaging >pom</packaging >
6969 <dependency >
7070 <groupId >com.basistech</groupId >
7171 <artifactId >common-api</artifactId >
72- <version >36.2 .0</version >
72+ <version >37.0 .0</version >
7373 </dependency >
7474 <dependency >
7575 <groupId >com.basistech</groupId >
7676 <artifactId >adm-model</artifactId >
77- <version >2.4.4 </version >
77+ <version >2.4.6 </version >
7878 </dependency >
7979 <dependency >
8080 <groupId >com.basistech</groupId >
8181 <artifactId >adm-json</artifactId >
82- <version >2.4.4 </version >
82+ <version >2.4.6 </version >
8383 </dependency >
8484 </dependencies >
8585 </dependencyManagement >
Original file line number Diff line number Diff line change 1919 <parent >
2020 <groupId >com.basistech.rosette</groupId >
2121 <artifactId >rosette-api-java-binding</artifactId >
22- <version >1.11.103 -SNAPSHOT</version >
22+ <version >1.11.104 -SNAPSHOT</version >
2323 </parent >
2424 <groupId >com.basistech.rosette</groupId >
2525 <artifactId >rosette-api-release</artifactId >
You can’t perform that action at this time.
0 commit comments