Discussion Overview
The discussion focuses on methods for transferring files between computers using the Java programming language. Participants explore various approaches, including networking classes, serialization, and potential protocols, while considering different environments such as LAN and the Internet.
Discussion Character
- Technical explanation
- Debate/contested
- Exploratory
Main Points Raised
- One participant inquires about transferring files using Java and questions whether serialization is necessary.
- Another participant suggests that if the transfer is over a LAN, serialization may not be needed, and recommends using ObjectInputStream and ObjectOutputStream.
- It is noted that Java objects must be serialized to leave their virtual machine, although this may not need to be invoked explicitly.
- A detailed method is proposed involving ServerSocket and Socket for file transfer, along with the need for a protocol to manage file names and commands.
- One participant expresses a desire to avoid the complexity of FTP and suggests using ObjectOutputStream and ObjectInputStream for file object transfer.
- Another participant emphasizes the necessity of networking classes for file transfer and mentions the importance of passing file names between computers.
- There is a suggestion that if the transfer is on a LAN and network drives can be mounted, writing directly to a directory could be simpler.
- One participant proposes defining a simpler protocol than FTP, while acknowledging the points made by others.
- RMI is mentioned as an alternative for file transfer, but some participants argue it may not be suitable for this purpose.
- Links to external code examples are shared as potential starting points for implementing file transfer.
Areas of Agreement / Disagreement
Participants express differing views on the necessity of serialization, the complexity of protocols, and the suitability of RMI for file transfer. No consensus is reached on a single method or approach.
Contextual Notes
Participants highlight the need for a protocol to manage file transfers, the potential complexity of implementing such a system, and the importance of networking classes. There are also discussions about the limitations of certain methods like RMI for file transfer.