Streams Ecosystem A stream is a body of water with a current, confined within a bed and stream banks. Depending on its locale or certain characteristics, a stream may be referred to as a branch, brook, beck, burn, creek, crick, gill (occasionally ghyll), kill, lick, rill, river, syke, bayou, rivulet, streamage, wash, run or runnel.

Streams are important as conduits in the water cycle, instruments in groundwater recharge, and corridors for fish and wildlife migration. The biological habitat in the immediate vicinity of a stream is called a riparian zone. Given the status of the ongoing Holocene extinction, streams play an important corridor role in connecting fragmented habitats and thus in conserving biodiversity. The study of streams and waterways in general is known as surface hydrology and is a core element of environmental geography.
The Perkiomen Creek in Perkiomenville, Pennsylvania, United States
A rocky stream in Hawaii, United States
River in Arkhangelsk Oblast, Russia.
A creek in Australia.external image streams.jpg
Wyming Brook in Sheffield, UK
A brook in the Bay of Fundy, Nova Scotia, Canada
Ambro torrent, Italy.
A creek at Hoyt Arboretum, Portland, Oregon.River
A large natural stream, which may be a waterway.
In North America, Australia and New Zealand, a small to medium sized natural stream. Sometimes navigable by motor craft and may be intermittent.
In parts of New England,[2] the UK and India, a tidal inlet, typically in a salt marsh or mangrove swamp, or between enclosed and drained former salt marshes or swamps (e.g. Port Creek separating Portsea Island from the mainland). In these cases, the stream is the tidal stream, the course of the seawater through the creek channel at low and high tide.
A contributory stream, or a stream which does not reach the sea but joins another river (a parent river). Sometimes also called a branch or fork.
A stream smaller than a creek, especially one that is fed by a spring or seep. It is usually small and easily forded. A brook is characterized by its shallowness and its bed being composed primarily of rocks.
[edit] Other namesIn the United Kingdom, there are several regional names for a stream:

Beck is used in Yorkshire, Lancashire , Dumfriesshire and Cumbria.
Bourne is used in the chalk downland of southern England (although strictly a bourne is wet in summer and dry in winter).
Brook is used in the Midlands, Lancashire and Cheshire.
Burn is used in Scotland and North East England.
Nant is used in Wales.
Stream is used in Southern England.
Syke is used in lowland Scotland and Cumbria.

Dreamy Forest Landscape no24919
Dreamy Forest Landscape no24919

In North America:

Kill in southern New York, Pennsylvania, Delaware, and New Jersey comes from a Dutch language word meaning "riverbed" or "water channel", and can also be used for the UK meaning of 'creek'.
Run in Ohio, Pennsylvania, Maryland, or Virginia can be the name of a stream.
Branch, fork, or prong can refer to tributaries or distributaries that share the same name as the main stream, generally with the addition of a cardinal direction.
Branch is also used to name streams in Maryland and Virginia.
Falls is also used to name streams in Maryland. Little Gunpowder Falls and The Jones Falls are actually rivers named in this manner, unique to Maryland.
Stream and brook are used in Midwestern states, Mid-Atlantic states and New England.
Crick is used in some parts of the United States.
[edit] Parts of a streamBar
A shoal that develops at the mouth of a river as sediment carried by the river is deposited as the current slows or is impedded by wave action. The Temperance River on Lake Superior's north shore is so named because it is one of the few rivers flowing into the lake that does not have a bar at its mouth.
The point at which a stream emerges from an underground course through unconsolidated sediments or through caves. A stream can, especially with caves, flow aboveground for part of its course, and underground for part of its course.
The spring from which the stream originates, or other point of origin of a stream.
The part of a stream or river proximate to its source. The word is most commonly used in the plural where there is no single point source.
The point at which the two streams merge. If the two tributaries are of approximately equal size, the confluence may be called a fork.
A somewhat smoothly flowing segment of the stream.
A segment where the water is deeper and slower moving.
A segment where the flow is shallower and more turbulent.
A depression created by constant erosion that carries the stream's flow.
Lands adjacent to the stream that are subject to flooding when a stream overflows its banks.external image Forest-Streams-1-XTF506TVEO-800x600.jpg
Stream bed
The bottom of a stream.
Gauging station
A point of demarkation along the route of a stream or river, used for reference marking or water monitoring.
The river's longitudinal section, or the line joining the deepest point in the channel at each stage from source to mouth.
Wetted perimeter
The line on which the stream's surface meets the channel walls.
The point on a stream's profile where a sudden change in stream gradient occurs.
Waterfall or cascade
The fall of water where the stream goes over a sudden drop called a nickpoint; some nickpoints are formed by erosion when water flows over an especially resistant stratum, followed by one less so. The stream expends kinetic energy in "trying" to eliminate the nickpoint.
The point at which the stream discharges, possibly via an estuary or delta, into a static body of water such as a lake or ocean.
[edit] SourcesStreams typically derive most of their water from precipitation in the form of rain and snow. Most of this water re-enters the atmosphere by evaporation from soil and water bodies, or by the evapotranspiration of plants. Some of the water proceeds to sink into the earth by infiltration and becomes groundwater, much of which eventually enters streams. Some precipitated water is temporarily locked up in snow fields and glaciers, to be released later by evaporation or melting. The rest of the water flows off the land as runoff, the proportion of which varies according to many factors, such as wind, humidity, vegetation, rock types, and relief. This runoff starts as a thin film called sheet wash, combined with a network of tiny rills, together constituting sheet runoff; when this water is concentrated in a channel, a stream has its birth.

[edit] CharacteristicsRanking
To qualify as a stream it must be either recurring or perennial. Recurring streams have water in the channel for at least part of the year. A stream of the first order is a stream which does not have any other stream feeding into it. When two first-order streams come together, they form a second-order stream. When two second-order streams come together, they form a third-order stream. Streams of lower order joining a higher order stream do not change the order of the higher stream. Thus, if a first-order stream joins a second-order stream, it remains a second-order stream. It is not until a second-order stream combines with another second-order stream that it becomes a third-order stream.

A tributary on the Uluguru Mountains which joins to the river RuvuGradient
The gradient of a stream is a critical factor in determining its character and is entirely determined by its base level of erosion. The base level of erosion is the point at which the stream either enters the ocean, a lake or pond, or enters a stretch in which it has a much lower gradient, and may be specifically applied to any particular stretch of a stream.

In geologic terms, the stream will erode down through its bed to achieve the base level of erosion throughout its course. If this base level is low, then the stream will rapidly cut through underlying strata and have a steep gradient, and if the base level is relatively high, then the stream will form a flood plain and meander.

Meanders are looping changes of direction of a stream caused by the erosion and deposition of bank materials. These are typically serpentine in form. Typically, over time the meanders gradually migrate downstream.

If some resistant material slows or stops the downstream movement of a meander, a stream may erode through the neck between two legs of a meander to become temporarily straighter, leaving behind an arc-shaped body of water termed an oxbow lake or bayou. A flood may also cause a meander to be cut through in this way.

Typically, streams are said to have a particular profile, beginning with steep gradients, no flood plain, and little shifting of channels, eventually evolving into streams with low gradients, wide flood plains, and extensive meanders. The initial stage is sometimes termed a "young" or "immature" stream, and the later state a "mature" or "old" stream. However, a stream may meander for some distance before falling into a "young" stream condition.

[edit] Intermittent and ephemeral streams
An Australian creek, low in the dry season, carrying little water. The energetic flow of the stream had, in flood, moved finer sediment further downstream. There is a pool to lower right and a riffle to upper left of the photograph.A perennial stream is one which flows continuously all year.[3]:57

In the United States, an intermittent or seasonal stream is one that only flows for part of the year and is marked on topographic maps with a line of blue dashes and dots.[3]:57-58 A wash or desert wash is normally a dry streambed in the deserts of the American Southwest which flows only after significant rainfall. Washes can fill up quickly during rains, and there may be a sudden torrent of water after a thunderstorm begins upstream, such as during monsoonal conditions. These flash floods often catch travelers by surprise. An intermittent stream can also be called an arroyo in Latin America, a winterbourne in Britain, or a wadi in the Arabic-speaking world.

In Italy an intermittent stream is termed a torrent (Italian torrente). In full flood the stream may or may not be "torrential" in the dramatic sense of the word, but there will be one or more seasons in which the flow is reduced to a trickle or less. Typically torrents have Apennine rather than Alpine sources, and in the summer they are fed by little precipitation and no melting snow. In this case the maximum discharge will be during the spring and autumn. However there are also glacial torrents with a different seasonal regime.

A blue-line stream is one which flows for most or all of the year and is marked on topographic maps with a solid blue line. In Australia, an intermittent stream is usually called a creek and marked on topographic maps with a solid blue line.

Generally, streams that flow only during and immediately after precipitation are termed ephemeral. There is no clear demarcation between surface runoff and an ephemeral stream.

Drainage basinsThe extent of land basin drained by a stream is termed its drainage basin (also known in North America as the watershed and, in British English, as a catchment). A basin may also be composed of smaller basins. For instance, the Continental Divide in North America divides the mainly easterly-draining Atlantic Ocean and Arctic Ocean basins from the largely westerly-flowing Pacific Ocean basin. The Atlantic Ocean basin, however, may be further subdivided into the Atlantic Ocean and Gulf of Mexico drainages. (This delineation is termed the Eastern Continental Divide.) Similarly, the Gulf of Mexico basin may be divided into the Mississippi River basin and several smaller basins, such as the Tombigbee River basin. Continuing in this vein, a component of the Mississippi River basin is the Ohio River basin, which in turn includes the Kentucky River basin, and so forth
A stream is a sequence of data of undetermined length. It's called a stream because it's like a stream of water that continues to flow. There's no definite end to it.

A better analogy might be a queue of people waiting to get on a ride at an amusement park. As people are processed at the front (i.e. get on the roller coaster) more are added at the back of the line. If it's a slow day the roller coaster may catch up with the end of the line and have to wait for people to board. Other days there may always be people in line until the park closes. Each person is a discrete individual and must be put on the roller coaster or not put on the roller coaster. There are no half-people. There's always a definite number of people in line though this number may change from moment to moment as people enter at the back of the line and exit from the front of the line. Although all the people are discrete, you'll sometimes have a family that must be put together in the same car. Thus although the individuals are discrete, they aren't necessarily unrelated.

In Java a stream is composed of discrete bytes. The bytes may represent chars or other kinds of data. They may come faster than you can handle them, or your thread may block while waiting for the next one to arrive. It often doesn't matter.

The key to processing the stream is a while loop that processes each piece of data, until you encounter the end-of-stream character or some other exceptional condition occurs. In Unix you type end-of-stream with Control-D. On Windows, you type end-of-stream with Control-Z.