You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2016/05/15 13:03:09 UTC
[4/6] jena git commit: Delete unused
Delete unused
Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/237de155
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/237de155
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/237de155
Branch: refs/heads/master
Commit: 237de155fd1e5bf8ccf3be46c54d01f71d29188f
Parents: 579f1dc
Author: Andy Seaborne <an...@apache.org>
Authored: Sat May 14 21:23:59 2016 +0100
Committer: Andy Seaborne <an...@apache.org>
Committed: Sat May 14 21:23:59 2016 +0100
----------------------------------------------------------------------
.../jena/riot/web/TypedInputStreamHttp.java | 51 --------------------
1 file changed, 51 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jena/blob/237de155/jena-arq/src/main/java/org/apache/jena/riot/web/TypedInputStreamHttp.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/web/TypedInputStreamHttp.java b/jena-arq/src/main/java/org/apache/jena/riot/web/TypedInputStreamHttp.java
deleted file mode 100644
index e1a6582..0000000
--- a/jena-arq/src/main/java/org/apache/jena/riot/web/TypedInputStreamHttp.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.jena.riot.web;
-
-import java.io.InputStream ;
-
-import org.apache.http.conn.ClientConnectionManager ;
-import org.apache.jena.atlas.web.MediaType ;
-import org.apache.jena.atlas.web.TypedInputStream ;
-
-/** Type streams for HTTP connections - includes Apache HTTP client specific cleanup */
-public class TypedInputStreamHttp extends TypedInputStream
-{
- private ClientConnectionManager connectMgr ;
-
- TypedInputStreamHttp(InputStream input, String contentType, ClientConnectionManager connectMgr)
- {
- this(input, MediaType.create(contentType), connectMgr) ;
- }
-
- TypedInputStreamHttp(InputStream input, MediaType mt, ClientConnectionManager connectMgr)
- {
- super(input, mt.getContentType(), mt.getCharset(), null) ;
- this.connectMgr = connectMgr ;
- }
-
- @Override
- public void close()
- {
- super.close() ;
- if ( connectMgr != null )
- connectMgr.shutdown() ;
- }
-
-}