|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream com.bea.content.internal.client.common.CM_InputStream com.bea.content.manager.CM_InputStream
@Deprecated public class CM_InputStream
Constructor Summary | |
---|---|
CM_InputStream(String propertyName,
int nodeId)
Deprecated Constructs an inputstream for a given property and node. |
|
CM_InputStream(String dataSourceName,
String propertyName,
int nodeId)
Deprecated Constructs an inputstream for a given property and node. |
|
CM_InputStream(String dataSourceName,
String propertyName,
Long propertyId,
int nodeId)
Deprecated Constructs an inputstream for a given property and node. |
Method Summary | |
---|---|
int |
available()
Deprecated Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. |
void |
close()
Deprecated Close input stream, close connection, and end transaction |
long |
getBlobSize()
Deprecated Returns the size of the blob if available. |
void |
mark(int readLimit)
Deprecated Marks the current position in this input stream. |
boolean |
markSupported()
Deprecated Tests if this input stream supports the mark and
reset methods. |
int |
read()
Deprecated Reads the next byte of data from the input stream. |
int |
read(byte[] b)
Deprecated Reads some number of bytes from the input stream and stores them into the buffer array b. |
int |
read(byte[] b,
int off,
int len)
Deprecated Reads up to len bytes of data from the input stream into an array of bytes. |
void |
reset()
Deprecated Repositions this stream to the position at the time the mark method was last called on this input stream. |
long |
skip(long n)
Deprecated Skips over and discards n bytes of data from this input
stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CM_InputStream(String dataSourceName, String propertyName, int nodeId)
dataSourceName
- The name of the datasource which represents the tables where the CM tables exist.propertyName
- The name of the propertynodeId
- The node idpublic CM_InputStream(String dataSourceName, String propertyName, Long propertyId, int nodeId)
dataSourceName
- The name of the datasource which represents the tables where the CM tables exist.propertyName
- The name of the propertypropertyId
- The id of the propertynodeId
- The node idpublic CM_InputStream(String propertyName, int nodeId)
propertyName
- The name of the propertynodeId
- The node idMethod Detail |
---|
public long getBlobSize()
getBlobSize
in class com.bea.content.internal.client.common.CM_InputStream
public boolean markSupported()
mark
and
reset
methods. Whether or not mark
and
reset
are supported is an invariant property of a
particular input stream instance. The markSupported
method
of InputStream
returns false
.
markSupported
in class com.bea.content.internal.client.common.CM_InputStream
true
if this stream instance supports the mark
and reset methods; false
otherwise.public void mark(int readLimit)
reset
method repositions this stream at the last marked
position so that subsequent reads re-read the same bytes.
The readlimit
arguments tells this input stream to
allow that many bytes to be read before the mark position gets
invalidated.
The general contract of mark
is that, if the method
markSupported
returns true
, the stream somehow
remembers all the bytes read after the call to mark
and
stands ready to supply those same bytes again if and whenever the method
reset
is called. However, the stream is not required to
remember any data at all if more than readlimit
bytes are
read from the stream before reset
is called.
The mark
method of InputStream
does
nothing.
mark
in class com.bea.content.internal.client.common.CM_InputStream
readLimit
- the maximum limit of bytes that can be read before
the mark position becomes invalid.public void reset() throws IOException
mark
method was last called on this input stream.
reset
in class com.bea.content.internal.client.common.CM_InputStream
IOException
public long skip(long n) throws IOException
n
bytes of data from this input
stream. The skip
method may, for a variety of reasons, end
up skipping over some smaller number of bytes, possibly 0
.
This may result from any of a number of conditions; reaching end of file
before n
bytes have been skipped is only one possibility.
The actual number of bytes skipped is returned. If n
is
negative, no bytes are skipped.
skip
in class com.bea.content.internal.client.common.CM_InputStream
IOException
public int available() throws IOException
available
in class com.bea.content.internal.client.common.CM_InputStream
IOException
public int read() throws IOException
read
in class com.bea.content.internal.client.common.CM_InputStream
IOException
public int read(byte[] b) throws IOException
read
in class com.bea.content.internal.client.common.CM_InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class com.bea.content.internal.client.common.CM_InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in class com.bea.content.internal.client.common.CM_InputStream
IOException
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |