public class ProbeOutputStream
extends java.io.OutputStream
implements org.eclipse.equinox.internal.provisional.p2.repository.IStateful
| Modifier and Type | Field and Description |
|---|---|
private java.io.ByteArrayOutputStream |
byteBuffer |
private boolean |
byteBufferIsClosed |
private org.eclipse.core.runtime.IStatus |
externallySetStatus |
(package private) static java.lang.String |
MD5_SUM_ZEROS |
| Constructor and Description |
|---|
ProbeOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
private java.security.DigestOutputStream |
createMd5DigestStream() |
void |
flush() |
private java.lang.String |
formatDigestAsPaddedHex(java.security.DigestOutputStream digestStream,
java.lang.String padding) |
java.util.Set<java.lang.String> |
getFilesInZip() |
org.eclipse.core.runtime.IStatus |
getStatus() |
boolean |
isClosed() |
java.lang.String |
md5AsHex() |
void |
setStatus(org.eclipse.core.runtime.IStatus status) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
private void |
writeBufferedContent(java.security.DigestOutputStream digestStream) |
int |
writtenBytes() |
static java.lang.String MD5_SUM_ZEROS
private java.io.ByteArrayOutputStream byteBuffer
private boolean byteBufferIsClosed
private org.eclipse.core.runtime.IStatus externallySetStatus
public int writtenBytes()
public boolean isClosed()
public java.util.Set<java.lang.String> getFilesInZip()
throws java.io.IOException
ZipInputStream; empty
if written data was not a zip file.java.io.IOExceptionpublic java.lang.String md5AsHex()
throws java.io.IOException
java.io.IOExceptionprivate java.security.DigestOutputStream createMd5DigestStream()
private void writeBufferedContent(java.security.DigestOutputStream digestStream)
throws java.io.IOException
java.io.IOExceptionprivate java.lang.String formatDigestAsPaddedHex(java.security.DigestOutputStream digestStream,
java.lang.String padding)
public void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic void setStatus(org.eclipse.core.runtime.IStatus status)
setStatus in interface org.eclipse.equinox.internal.provisional.p2.repository.IStatefulpublic org.eclipse.core.runtime.IStatus getStatus()
getStatus in interface org.eclipse.equinox.internal.provisional.p2.repository.IStateful