All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zusmart.basic.scanner.support.InternalScannerResourceResult Maven / Gradle / Ivy

Go to download

基础模块,提供配置,日志,SPI,图排序,路径匹配,资源扫描,包扫描,常用工具类

There is a newer version: 0.0.3
Show newest version
package com.zusmart.basic.scanner.support;

import java.io.IOException;
import java.io.InputStream;
import java.net.URL;

import com.zusmart.basic.scanner.ScannerResourceResult;
import com.zusmart.basic.scanner.ScannerResultType;

public class InternalScannerResourceResult extends AbstractScannerResult implements ScannerResourceResult {

	public InternalScannerResourceResult(URL url, String name) {
		super(url, name);
	}

	@Override
	public ScannerResultType getTargetType() {
		return ScannerResultType.Resource;
	}

	@Override
	public InputStream getTargetInputStream() throws IOException {
		return this.url.openConnection().getInputStream();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy