|
IAIK CMS/SMIME Toolkit API Documentation
Version 6.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.ByteArrayInputStream
iaik.smime.SharedByteArrayInputStream
public class SharedByteArrayInputStream
SharedInputStream implementation based on a ByteArrayInputStream.
Field Summary |
---|
Fields inherited from class java.io.ByteArrayInputStream |
---|
buf, count, mark, pos |
Constructor Summary | |
---|---|
SharedByteArrayInputStream(byte[] buf)
Creates a SharedByteArrayInputStream for reading data from the given byte array. |
|
SharedByteArrayInputStream(byte[] buf,
int offset,
int length)
Creates a SharedByteArrayInputStream for reading data from a sub-array of the given byte array. |
Method Summary | |
---|---|
long |
getPosition()
Gets the current postion of the stream as offset from the start postion. |
java.io.InputStream |
newStream(long start,
long end)
Gets a new SharedInputStream as substream from this InputStream. |
Methods inherited from class java.io.ByteArrayInputStream |
---|
available, close, mark, markSupported, read, read, reset, skip |
Methods inherited from class java.io.InputStream |
---|
read |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SharedByteArrayInputStream(byte[] buf)
buf
- the data carrying byte arraypublic SharedByteArrayInputStream(byte[] buf, int offset, int length)
buf
- the data carrying byte arrayoffset
- the position in the byte array from which to start readinglength
- the maximum number of bytes that can be readMethod Detail |
---|
public long getPosition()
getPosition
in interface javax.mail.internet.SharedInputStream
public java.io.InputStream newStream(long start, long end)
newStream
in interface javax.mail.internet.SharedInputStream
start
- the start position in the current streamend
- the end position (+1) in the current stream;
-1 if the new stream shall end at the same position
as this stream
|
IAIK CMS/SMIME Toolkit API Documentation
Version 6.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
v6.1 (c) 2002 IAIK, (c) 2003 - 2025 SIC |
![]() |