/** * Writes len bytes from the specified byte array starting at * offset off to this file output stream. * * @param b * The array * @throws IOException * if a network error occurs */ @Override public void write ( byte[] b, int off, int len ) throws IOException { writeDirect(b, off, len, 0); }
/** * Writes len bytes from the specified byte array starting at * offset off to this file output stream. * * @param b * The array * @throws IOException * if a network error occurs */ @Override public void write ( byte[] b, int off, int len ) throws IOException { writeDirect(b, off, len, 0); }
protected void doSendFragment(byte[] buf, int off, int length, boolean isDirect) throws IOException { if (out != null && out.isOpen() == false) throw new IOException("DCERPC pipe is no longer open"); if (in == null) in = (SmbFileInputStream)pipe.getNamedPipeInputStream(); if (out == null) out = (SmbFileOutputStream)pipe.getNamedPipeOutputStream(); if (isDirect) { out.writeDirect( buf, off, length, 1 ); return; } out.write(buf, off, length); } protected void doReceiveFragment(byte[] buf, boolean isDirect) throws IOException {
protected void doSendFragment(byte[] buf, int off, int length, boolean isDirect) throws IOException { if (out != null && out.isOpen() == false) throw new IOException("DCERPC pipe is no longer open"); if (in == null) in = (SmbFileInputStream)pipe.getNamedPipeInputStream(); if (out == null) out = (SmbFileOutputStream)pipe.getNamedPipeOutputStream(); if (isDirect) { out.writeDirect( buf, off, length, 1 ); return; } out.write(buf, off, length); } protected void doReceiveFragment(byte[] buf, boolean isDirect) throws IOException {
protected void doSendFragment(byte[] buf, int off, int length, boolean isDirect) throws IOException { if (out != null && out.isOpen() == false) throw new IOException("DCERPC pipe is no longer open"); if (in == null) in = (SmbFileInputStream)pipe.getNamedPipeInputStream(); if (out == null) out = (SmbFileOutputStream)pipe.getNamedPipeOutputStream(); if (isDirect) { out.writeDirect( buf, off, length, 1 ); return; } out.write(buf, off, length); } protected void doReceiveFragment(byte[] buf, boolean isDirect) throws IOException {
protected void doSendFragment(byte[] buf, int off, int length, boolean isDirect) throws IOException { if (out != null && out.isOpen() == false) throw new IOException("DCERPC pipe is no longer open"); if (in == null) in = (SmbFileInputStream)pipe.getNamedPipeInputStream(); if (out == null) out = (SmbFileOutputStream)pipe.getNamedPipeOutputStream(); if (isDirect) { out.writeDirect( buf, off, length, 1 ); return; } out.write(buf, off, length); } protected void doReceiveFragment(byte[] buf, boolean isDirect) throws IOException {
/** * Writes len bytes from the specified byte array starting at * offset off to this file output stream. * * @param b The array * @throws IOException if a network error occurs */ public void write( byte[] b, int off, int len ) throws IOException { if( file.isOpen() == false && file instanceof SmbNamedPipe ) { file.send( new TransWaitNamedPipe( "\\pipe" + file.unc ), new TransWaitNamedPipeResponse() ); } writeDirect( b, off, len, 0 ); } /**
/** * Writes len bytes from the specified byte array starting at * offset off to this file output stream. * * @param b The array * @throws IOException if a network error occurs */ public void write( byte[] b, int off, int len ) throws IOException { if( file.isOpen() == false && file instanceof SmbNamedPipe ) { file.send( new TransWaitNamedPipe( "\\pipe" + file.unc ), new TransWaitNamedPipeResponse() ); } writeDirect( b, off, len, 0 ); } /**
/** * Writes len bytes from the specified byte array starting at * offset off to this file output stream. * * @param b The array * @throws IOException if a network error occurs */ public void write( byte[] b, int off, int len ) throws IOException { if( file.isOpen() == false && file instanceof SmbNamedPipe ) { file.send( new TransWaitNamedPipe( "\\pipe" + file.unc ), new TransWaitNamedPipeResponse() ); } writeDirect( b, off, len, 0 ); } /**
/** * Writes len bytes from the specified byte array starting at * offset off to this file output stream. * * @param b The array * @throws IOException if a network error occurs */ public void write( byte[] b, int off, int len ) throws IOException { if( file.isOpen() == false && file instanceof SmbNamedPipe ) { file.send( new TransWaitNamedPipe( "\\pipe" + file.unc ), new TransWaitNamedPipeResponse() ); } writeDirect( b, off, len, 0 ); } /**