keycloak-federation
公開メンバ関数 | 変数 | 非公開メンバ関数 | 非公開変数類 | 全メンバ一覧
cx.ath.matthew.unix.USOutputStream クラス
cx.ath.matthew.unix.USOutputStream の継承関係図
Inheritance graph
cx.ath.matthew.unix.USOutputStream 連携図
Collaboration graph

公開メンバ関数

 USOutputStream (int sock, UnixSocket us)
 
void close () throws IOException
 
void flush ()
 
void write (byte[][] b) throws IOException
 
void write (byte[] b, int off, int len) throws IOException
 
void write (int b) throws IOException
 
boolean isClosed ()
 
UnixSocket getSocket ()
 

変数

boolean closed = false
 

非公開メンバ関数

native int native_send (int sock, byte[] b, int off, int len) throws IOException
 
native int native_send (int sock, byte[][] b) throws IOException
 

非公開変数類

int sock
 
byte [] onebuf = new byte[1]
 
UnixSocket us
 

詳解

構築子と解体子

◆ USOutputStream()

cx.ath.matthew.unix.USOutputStream.USOutputStream ( int  sock,
UnixSocket  us 
)
inline
42  {
43  this.sock = sock;
44  this.us = us;
45  }
int sock
Definition: USOutputStream.java:37
UnixSocket us
Definition: USOutputStream.java:40

関数詳解

◆ close()

void cx.ath.matthew.unix.USOutputStream.close ( ) throws IOException
inline
47  {
48  closed = true;
49  us.close();
50  }
synchronized void close()
Definition: UnixSocket.java:135
UnixSocket us
Definition: USOutputStream.java:40
boolean closed
Definition: USOutputStream.java:38

◆ flush()

void cx.ath.matthew.unix.USOutputStream.flush ( )
inline
52  {
53  } // no-op, we do not buffer

◆ getSocket()

UnixSocket cx.ath.matthew.unix.USOutputStream.getSocket ( )
inline
75  {
76  return us;
77  }
UnixSocket us
Definition: USOutputStream.java:40

◆ isClosed()

boolean cx.ath.matthew.unix.USOutputStream.isClosed ( )
inline
71  {
72  return closed;
73  }
boolean closed
Definition: USOutputStream.java:38

◆ native_send() [1/2]

native int cx.ath.matthew.unix.USOutputStream.native_send ( int  sock,
byte []  b,
int  off,
int  len 
) throws IOException
private

◆ native_send() [2/2]

native int cx.ath.matthew.unix.USOutputStream.native_send ( int  sock,
byte  b[][] 
) throws IOException
private

◆ write() [1/3]

void cx.ath.matthew.unix.USOutputStream.write ( byte  b[][]) throws IOException
inline
55  {
56  if (closed) throw new NotConnectedException();
57  native_send(sock, b);
58  }
int sock
Definition: USOutputStream.java:37
native int native_send(int sock, byte[] b, int off, int len)
boolean closed
Definition: USOutputStream.java:38

◆ write() [2/3]

void cx.ath.matthew.unix.USOutputStream.write ( byte []  b,
int  off,
int  len 
) throws IOException
inline
60  {
61  if (closed) throw new NotConnectedException();
62  native_send(sock, b, off, len);
63  }
int sock
Definition: USOutputStream.java:37
native int native_send(int sock, byte[] b, int off, int len)
boolean closed
Definition: USOutputStream.java:38

◆ write() [3/3]

void cx.ath.matthew.unix.USOutputStream.write ( int  b) throws IOException
inline
65  {
66  onebuf[0] = (byte) (b % 0x7F);
67  if (1 == (b % 0x80)) onebuf[0] = (byte) -onebuf[0];
68  write(onebuf);
69  }
void write(byte[][] b)
Definition: USOutputStream.java:55
byte [] onebuf
Definition: USOutputStream.java:39

メンバ詳解

◆ closed

boolean cx.ath.matthew.unix.USOutputStream.closed = false
package

◆ onebuf

byte [] cx.ath.matthew.unix.USOutputStream.onebuf = new byte[1]
private

◆ sock

int cx.ath.matthew.unix.USOutputStream.sock
private

◆ us

UnixSocket cx.ath.matthew.unix.USOutputStream.us
private

このクラス詳解は次のファイルから抽出されました: