public class Resource extends FilterInputStream
in
构造器和说明 |
---|
Resource(InputStream inputStream)
Constructs a resource of 'unknown' type.
|
Resource(String type,
InputStream inputStream) |
public Resource(String type, InputStream inputStream)
type
- resource typeinputStream
- input stream of the resourcepublic Resource(InputStream inputStream)
inputStream
- input stream of the resourcepublic String getType()
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.