¡@

Home 

2014/10/16 ¤W¤È 08:10:45

android Programming Glossary: browserutils.logrun

Android ServerSocket programming with jCIFS streaming files

http://stackoverflow.com/questions/9058135/android-serversocket-programming-with-jcifs-streaming-files

private final Socket socket HttpSession Socket s socket s BrowserUtils.LOGRUN Stream over localhost serving request on s.getInetAddress Thread.. bytes sendError socket HTTP_416 null return if debug BrowserUtils.LOGRUN range range range.substring 6 long startFrom 0 endAt 1 int.. headers is sendCount buf null inS.close if debug BrowserUtils.LOGRUN Http stream finished catch IOException ioe if debug ioe.printStackTrace..

Android ServerSocket programming with jCIFS streaming files

http://stackoverflow.com/questions/9058135/android-serversocket-programming-with-jcifs-streaming-files

Runnable private boolean canSeek private InputStream is private final Socket socket HttpSession Socket s socket s BrowserUtils.LOGRUN Stream over localhost serving request on s.getInetAddress Thread t new Thread this Http response t.setDaemon true t.start.. OK sendCount int file.fileSize else if range.startsWith bytes sendError socket HTTP_416 null return if debug BrowserUtils.LOGRUN range range range.substring 6 long startFrom 0 endAt 1 int minus range.indexOf ' ' if minus 0 try String startR range.substring.. Content Range rangeSpec sendResponse socket status fileMimeType headers is sendCount buf null inS.close if debug BrowserUtils.LOGRUN Http stream finished catch IOException ioe if debug ioe.printStackTrace try sendError socket HTTP_INTERNALERROR SERVER..