Advertisement
Guest User

adasdadasdsa

a guest
Nov 28th, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. if(s.contains("/index.html")){
  2. System.out.println("200 OK");
  3. /* try {
  4. Stream<String> lines = Files.lines(path);
  5. lines.forEach(demo -> out.println(demo));
  6. } catch (IOException ex) {
  7.  
  8. }*/
  9. out.println(new String(Files.readAllBytes(path)));
  10. //out.println(new String(readAllBytes(get(path))));
  11. }else{
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement