Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS 190 Lecture Notes: Tweeter Project

Similar presentations


Presentation on theme: "CS 190 Lecture Notes: Tweeter Project"— Presentation transcript:

1 CS 190 Lecture Notes: Tweeter Project
Thin Methods private void addNullValueForAttribute(String attribute) { data.put(attribute, "null"); } /* Updates the persistent data structures to reflect * the given friendship */ private void persist(FriendshipOp f) { recordStore.append(friendFile, f); CS 190 Lecture Notes: Tweeter Project

2 CS 190 Lecture Notes: Tweeter Project
Thin Methods, cont’d /** * This should be called to make sure that the the url path * in the HTTP request has a corresponding URL Action that * can be invoked. * urlPath True if the urlPath matches one of the urls in the * methods annotated with APIRequest. */ private boolean isValidUrl(final String urlPath) return this.urlActionMap.containsKey(urlPath); } CS 190 Lecture Notes: Tweeter Project

3 CS 142 Lecture Notes: Events
Java I/O FileInputStream fileStream = new FileInputStream(fileName); BufferedInputStream bufferedStream = new BufferedInputStream(fileStream); ObjectInputStream objectStream = new ObjectInputStream(bufferedStream); CS 142 Lecture Notes: Events

4 CS 142 Lecture Notes: Events
UNIX ioctl int result = ioctl(int fd, int request, void* inBuffer, int inputSize, void* outBuffer, int outputSize); CS 142 Lecture Notes: Events


Download ppt "CS 190 Lecture Notes: Tweeter Project"

Similar presentations


Ads by Google