hep.io.root.daemon.xrootd
Class XrootdInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by hep.io.root.daemon.DaemonInputStream
          extended by hep.io.root.daemon.xrootd.XrootdInputStream
All Implemented Interfaces:
Closeable

public class XrootdInputStream
extends DaemonInputStream

Author:
tonyj

Field Summary
 
Fields inherited from class hep.io.root.daemon.DaemonInputStream
position
 
Constructor Summary
XrootdInputStream(XrootdURLConnection conn)
           
 
Method Summary
 int available()
           
 void close()
           
protected  void finalize()
           
 long getPosition()
          Get the current file position
 int read()
           
 int read(byte[] values, int offset, int size)
           
 void setPosition(long pos)
          Set the current file position
 long skip(long skip)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XrootdInputStream

public XrootdInputStream(XrootdURLConnection conn)
                  throws IOException
Throws:
IOException
Method Detail

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class InputStream
Throws:
IOException

read

public int read(byte[] values,
                int offset,
                int size)
         throws IOException
Overrides:
read in class InputStream
Throws:
IOException

skip

public long skip(long skip)
          throws IOException
Overrides:
skip in class InputStream
Throws:
IOException

setPosition

public void setPosition(long pos)
Description copied from class: DaemonInputStream
Set the current file position

Overrides:
setPosition in class DaemonInputStream

available

public int available()
              throws IOException
Overrides:
available in class InputStream
Throws:
IOException

getPosition

public long getPosition()
Description copied from class: DaemonInputStream
Get the current file position

Overrides:
getPosition in class DaemonInputStream

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable


Copyright © 2000-2013 FreeHEP. All Rights Reserved.