diff options
Diffstat (limited to 'java/com/tigervnc/rdr/TLSOutStream.java')
-rw-r--r-- | java/com/tigervnc/rdr/TLSOutStream.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/java/com/tigervnc/rdr/TLSOutStream.java b/java/com/tigervnc/rdr/TLSOutStream.java index 61296525..80514b27 100644 --- a/java/com/tigervnc/rdr/TLSOutStream.java +++ b/java/com/tigervnc/rdr/TLSOutStream.java @@ -2,17 +2,17 @@ * Copyright (C) 2005 Martin Koegler * Copyright (C) 2010 TigerVNC Team * Copyright (C) 2011 Brian P. Hinz - * + * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this software; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, @@ -41,12 +41,12 @@ public class TLSOutStream extends OutStream { end = start + bufSize; } - public int length() - { - return offset + ptr - start; + public int length() + { + return offset + ptr - start; } - public void flush() + public void flush() { int sentUpTo = start; while (sentUpTo < ptr) { @@ -59,7 +59,7 @@ public class TLSOutStream extends OutStream { //out.flush(); } - protected int overrun(int itemSize, int nItems) + protected int overrun(int itemSize, int nItems) { if (itemSize > bufSize) throw new Exception("TLSOutStream overrun: max itemSize exceeded"); @@ -86,7 +86,7 @@ public class TLSOutStream extends OutStream { //if (n < 0) // throw new TLSException("writeTLS", n); - + return n; } |