public abstract class AbstractSource extends Object implements Source, Closeable
Constructor and Description |
---|
AbstractSource(URI uri) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
URI |
getURI()
データのURIを返します。
|
boolean |
isFile()
ファイルならtrueを返します。
|
boolean |
isInputStream()
バイナリデータとして取得可能ならtrueを返します。
|
boolean |
isReader()
テキストデータとして取得可能ならtrueを返します。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exists, getEncoding, getFile, getInputStream, getLength, getMimeType, getReader, getValidity
protected final URI uri
public AbstractSource(URI uri)
public URI getURI()
Source
getURI
in interface MetaSource
getURI
in interface Source
public boolean isInputStream() throws IOException
Source
isInputStream
in interface Source
IOException
public boolean isFile() throws IOException
Source
isFile
in interface Source
IOException
public boolean isReader() throws IOException
Source
isReader
in interface Source
IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2018 座間ソフト. All rights reserved.