Class DAO
java.lang.Object
org.deltava.dao.file.DAO
- Direct Known Subclasses:
GetAirspaceDefinition, GetImportStatus, GetPDFText, GetProcData, GetSerializedOnline, GetSerializedPosition, GetSerializedRoute, GetTiles, GetVATSIMTransceivers, GetWAFSData, OnlineNetworkDAO, ScheduleLoadDAO, WriteableDAO
An abstract class to support stream-based Data Access Objects.
- Since:
- 1.0
- Version:
- 9.0
- Author:
- Luke
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDAO(InputStream is) Initializes the Data Access Object with a particular input stream. -
Method Summary
Modifier and TypeMethodDescriptionprotected LineNumberReaderReturns a reader suitable for text reads on the HTTP connection.protected InputStreamReturns the input stream used for input.voidsetBufferSize(int size) Sets the buffer size for the connection.
-
Constructor Details
-
DAO
Initializes the Data Access Object with a particular input stream.- Parameters:
is- the input stream
-
-
Method Details
-
setBufferSize
public void setBufferSize(int size) Sets the buffer size for the connection.- Parameters:
size- the size in bytes
-
getReader
Returns a reader suitable for text reads on the HTTP connection.- Returns:
- a BufferedReader
-
getStream
-