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.IOException
public java.lang.String md5AsHex() throws java.io.IOException
java.io.IOException
private java.security.DigestOutputStream createMd5DigestStream()
private void writeBufferedContent(java.security.DigestOutputStream digestStream) throws java.io.IOException
java.io.IOException
private 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.OutputStream
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
public void setStatus(org.eclipse.core.runtime.IStatus status)
setStatus
in interface org.eclipse.equinox.internal.provisional.p2.repository.IStateful
public org.eclipse.core.runtime.IStatus getStatus()
getStatus
in interface org.eclipse.equinox.internal.provisional.p2.repository.IStateful