SysOutStream.
Inheritance: OutStream
Ejemplo n.º 1
0
        public override OutStream @out(bool append, Long bufSize)
        {
            try
            {
                FileInfo f = (FileInfo)m_file;
                System.IO.Directory.CreateDirectory(f.DirectoryName);

                System.IO.Stream fout = f.Open(
                    append ? System.IO.FileMode.Append : System.IO.FileMode.Create,
                    System.IO.FileAccess.Write);
                System.IO.Stream bout = SysOutStream.toBuffered(fout, bufSize);
                m_file.Refresh();
                return(new LocalFileOutStream(bout /*, fout.getFD()*/));
            }
            catch (System.IO.IOException e)
            {
                throw IOErr.make(e).val;
            }
        }
Ejemplo n.º 2
0
 private Zip(OutStream outs)
 {
     this.m_zipOut = new ZipOutputStream(SysOutStream.dotnet(outs));
 }
Ejemplo n.º 3
0
 internal void connected(TcpSocket fan)
 {
     IPEndPoint endPoint = m_dotnet.RemoteEndPoint as IPEndPoint;
       m_remoteAddr = IpAddrPeer.make(endPoint.Address);
       m_remotePort = endPoint.Port;
       m_in  = SysInStream.make(new NetworkStream(m_dotnet), getInBufferSize(fan));
       m_out = SysOutStream.make(new NetworkStream(m_dotnet), getOutBufferSize(fan));
 }
Ejemplo n.º 4
0
 public void close()
 {
     m_dotnet.Close();
       m_in  = null;
       m_out = null;
       m_closed = true;
 }