资源简介
通过SDK连接 java编写修改海康威视摄像头自动校时功能
代码片段和文件信息
/*
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
https://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.
*/
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
import java.util.Properties;
public class MavenWrapperDownloader {
/**
* Default URL to download the maven-wrapper.jar from if no ‘downloadUrl‘ is provided.
*/
private static final String DEFAULT_DOWNLOAD_URL =
“https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar“;
/**
* Path to the maven-wrapper.properties file which might contain a downloadUrl property to
* use instead of the default one.
*/
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
“.mvn/wrapper/maven-wrapper.properties“;
/**
* Path where the maven-wrapper.jar will be saved to.
*/
private static final String MAVEN_WRAPPER_JAR_PATH =
“.mvn/wrapper/maven-wrapper.jar“;
/**
* Name of the property which should be used to override the default download url for the wrapper.
*/
private static final String PROPERTY_NAME_WRAPPER_URL = “wrapperUrl“;
public static void main(String args[]) {
System.out.println(“- Downloader started“);
File baseDirectory = new File(args[0]);
System.out.println(“- Using base directory: “ + baseDirectory.getAbsolutePath());
// If the maven-wrapper.properties exists read it and check if it contains a custom
// wrapperUrl parameter.
File mavenWrapperPropertyFile = new File(baseDirectory MAVEN_WRAPPER_PROPERTIES_PATH);
String url = DEFAULT_DOWNLOAD_URL;
if(mavenWrapperPropertyFile.exists()) {
FileInputStream mavenWrapperPropertyFileInputStream = null;
try {
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
Properties mavenWrapperProperties = new Properties();
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL url);
} catch (IOException e) {
Syste
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1722 2019-04-08 09:52 camera\camera\.classpath
文件 303 2019-04-04 02:51 camera\camera\.gitignore
文件 48337 2019-04-04 02:51 camera\camera\.mvn\wrapper\maven-wrapper.jar
文件 116 2019-04-04 02:51 camera\camera\.mvn\wrapper\maven-wrapper.properties
文件 4625 2019-04-04 02:51 camera\camera\.mvn\wrapper\MavenWrapperDownloader.java
文件 972 2019-04-04 15:05 camera\camera\.project
文件 155 2019-04-04 11:13 camera\camera\.settings\org.eclipse.core.resources.prefs
文件 52 2019-04-04 14:40 camera\camera\.settings\org.eclipse.core.runtime.prefs
文件 243 2019-04-04 11:13 camera\camera\.settings\org.eclipse.jdt.core.prefs
文件 90 2019-04-04 11:13 camera\camera\.settings\org.eclipse.m2e.core.prefs
文件 145 2019-04-04 14:40 camera\camera\.settings\org.eclipse.wst.common.project.facet.core.xm
文件 355 2019-04-04 02:51 camera\camera\HELP.md
文件 9114 2019-04-04 02:51 camera\camera\mvnw
文件 5811 2019-04-04 02:51 camera\camera\mvnw.cmd
文件 1243 2019-04-08 10:11 camera\camera\pom.xm
文件 311 2019-04-11 11:29 camera\camera\src\main\java\com\example\camera\CameraApplication.java
文件 719 2019-07-26 09:18 camera\camera\src\main\java\com\example\util\PortAndIp.java
文件 574 2019-04-10 16:21 camera\camera\src\main\java\com\nstrong\HK\Constant.java
文件 211231 2019-04-08 11:36 camera\camera\src\main\java\com\nstrong\HK\HCNetSDK.java
文件 393 2019-07-04 15:53 camera\camera\src\main\java\com\nstrong\HK\HCNetSDK2.java
文件 3334 2019-04-09 17:23 camera\camera\src\main\java\com\nstrong\HK\HKCalibrationTime.java
文件 1424 2019-04-08 10:38 camera\camera\src\main\java\com\nstrong\po\HardDisk.java
文件 3048 2019-04-08 10:37 camera\camera\src\main\java\com\nstrong\po\HKBasicInfo.java
文件 2745 2019-04-08 10:37 camera\camera\src\main\java\com\nstrong\po\HKChannel.java
文件 1291 2019-04-08 10:37 camera\camera\src\main\java\com\nstrong\po\HKNetwork.java
文件 4942 2019-04-08 10:37 camera\camera\src\main\java\com\nstrong\po\HKPic.java
文件 663 2019-04-08 10:36 camera\camera\src\main\java\com\nstrong\po\HKTarget.java
文件 81 2019-04-08 10:11 camera\camera\src\main\resources\application.properties
文件 5811 2017-09-04 15:58 camera\camera\src\main\resources\ext\js\DWRProxy.js
文件 2070 2017-09-04 15:58 camera\camera\src\main\resources\ext\js\DWRTreeLoader.js
............此处省略2665个文件信息
相关资源
- 海康威视SDK开发包
- 海康威视java开发包
- 海康威视android版SDK205483
- 海康威视 java B/S SDK 完美无瑕开发包
- 海康威视Java2017-11开发包web版,内网亲
- 海康威视网络摄像头Android端
- 海康威视SDK自动拍照java代码亲测有效
- 海康威视sdk java demo
- IVMS8700 海康威视移动监控demo
- HaiKongVideoRealPlayDemo.rar
- 海康威视摄像头移动侦测和遮挡告警
- 海康网络摄像头android版本的demo
- 海康威视开发ActiveX控件接口说明(
- Linux下IPC二次开发文档.zip
- 海康威视Android开发包调用包括OSD字幕
- 海康威视javaB/S外网预览附件包
- WEB调用海康威视摄像头
- 海康威视刷机软件破除限制版
- 海康威视android版SDK
评论
共有 条评论